Sencha touch charts 2: Dynamically create chart and load series from the store? -


I want to dynamically create a scatter chart and get the data from the store and want to load the chain. Is there any way to do this? I have done the following:

  var myChart = Ext.create ('Ext.chart.Chart', {id: 'mychart', rendereTo: 'myPanel', axes: [], // Is empty because I need to add axis from the store chain: [] // is empty because I need to add a chain to the store:}); (For situations) {myChart.config.axes [0] .fields.push (record [cnt] .data.fieldName); Var series = {type: 'scatter', axis: ['right', 'bottom'], Xfilled: 'Maxfield', WiFiild: record [CNT] .data.yfieldVal} myChart.config.series.push (series); } // ends mychart.redraw ();   

Iam is dynamically adding which is not able to see charts with plots.

Any help will be anticipated!

Thank you!

I realized how to solve this issue. I have declared the Global Variable for Store Names and other related fields. I have achieved and determined methods that are defined in the app.js file. I was able to set these values ​​dynamically by using the prescribed methods and used the values ​​assigned using the received methods. I hope someone will be able to use this technique if necessary.

Comments