Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hichchart not working after building Sencha Touch 2.3 app #27

Open
waqid7 opened this issue Jul 3, 2014 · 3 comments
Open

Hichchart not working after building Sencha Touch 2.3 app #27

waqid7 opened this issue Jul 3, 2014 · 3 comments

Comments

@waqid7
Copy link

waqid7 commented Jul 3, 2014

I was successfully able to integrate Highcharts with Sencha Touch 2.3 app and it works fine.

Now, I built the app using -

sencha app build testing

After this, the chart does not get rendered. It throws the following error-

Object {xtype: "highchart", id: "bubbleChart", series: Array[3], store: Class, chartConfig: Object}
call draw
Uncaught TypeError: Object # has no method 'buildInitData'

This is the function within which the error occurs -

/***
* @Private
* Build the initial data set if there are data already
* inside the store.
*/
buildInitData : function() {

    // Sencha Touch uses config to access properties
    var _this = (this.statics().sencha.product == 't') ? this.config : this;
    var series = null, chartConfigSeries = null;
    var ptObject = null, record = null, colorField = null;

    if (!this.store || this.store.isLoading() || 
        !_this.chartConfig || _this.initAnim === false ||
        _this.chartConfig.chart.animation === false) {
        return;
    }

    var data = [], seriesCount = _this.series.length, i;
    var items = this.store.data.items;
    (_this.chartConfig.series === undefined) && (_this.chartConfig.series = []);
    for( i = 0; i < seriesCount; i++) {

        if (!_this.chartConfig.series[i])
            _this.chartConfig.series[i] = { data: [] };
        else 
            _this.chartConfig.series[i].data = [];

        // Sort out the type for this series
        series = _this.series[i];
        series.buildInitData(items); <-------- ERROR HERE
    }
},

Again, my implementation works fine when I run the raw sencha app. But after building it, i get the above error.

@akbansal
Copy link

I am getting similar error? did you get it resolved?

@JoeKuan
Copy link
Owner

JoeKuan commented Aug 29, 2016

Sorry, I haven't maintained the package for a long time. It's difficult for me to find spare time in the weekend to sort this thing out. I give a try this weekend but no guarantee. Sorry for the delay again.

@JoeKuan
Copy link
Owner

JoeKuan commented Sep 8, 2016

Please can anyone tell me which version of sencha cmd and post a copy of app.json.

Thanks
Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants