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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -