I created the sample 'mvc' inside architect.
Next, I dropped a line chart on the the main view.
I set the 'store' of the chart to the 'MyStore' that was auto-generated with the MVC sample.
I set the chart width to 100% and height 95% so it's properly visible.
Next, I modified the model and made sure there were fields 'x' (string) , 'y1' and 'y2' type int
Then, I went to the store - data, clicked to 'generate data' and let it generate 30 records.
Now in design mode, I see the sample data properly on the X and Y axis! So far so good (though I see no actual LINES yet).
I save, build (confirmed it built and had no warnings) and load it up in my browser. I receive and error
Code:
Uncaught TypeError: Cannot read property 'getData' of null
These are the last several lines in the trace in the browser:
Code:
Ext.define.coordinate app.js:50077Ext.define.coordinateX app.js:71472Ext.define.processData app.js:52137Ext.define.onSeriesChanged app.js:52948Ext.define.doFire app.js:15267Ext.define.fire app.js:15194Ext.define.doDispatchEvent app.js:15692Ext.define.dispatchEvent app.js:15673Ext.define.doFireEvent app.js:16036Ext.define.fireEvent app.js:15990Ext.define.updateSeries
Note that I found a 'sencha touch charts tutorial' online, which I was actually able to get working, but that was not using ARCHITECT. I am trying to get an architect project with working chart, and would greatly appreciate some advice, tutorial, video. Thanks!
Trouble creating a chart in sencha architect / touch
Aucun commentaire:
Enregistrer un commentaire