extjs - how to define jsonstore for dynamic series in charts? -
i want add in series dynamically chart. instance, have grid of unknown number of products. when clicked on particular row, sales statistics of product added chart. therefore, there may multiple lines on chart.
the question is, how define fields of jsonstore yfield of series not know beforehand?
i stumbled across same problem. searched official forum bit, , seems official way:
you define new store fields, , use bindstore method:
http://docs.sencha.com/ext-js/4-0/#!/api/ext.chart.chart-method-bindstore
don't forget define appropriate series (setseries-method) , reload store redraw chart.
Comments
Post a Comment