IlanCopelyn
25 Jan 2012, 2:38 AM
Hi there,
Can someone point me in the right direction. I'm looking to create a line chart with a variable number of lines. The data:
- Each customer has a variable number of vending machines on premises
- I have 'Total units sold per month', for each vending machine
The chart:
- xvalues = month
- yvalues = units sold
- I want 1 line per machine - showing total units sold per month
The problem:
- I don't know how many machines there will be per customer
- I need to be able to dynamically create a store with a variable number of machines, and a chart with a variable number of series.
I've found some previous forum posts, but the functions they mention (setSeries and updateChart) don't seem to exist in my version of ext = 4.0.7:
http://www.sencha.com/forum/showthread.php?108884-chart-with-dynamic-series
(http://www.sencha.com/forum/showthread.php?108884-chart-with-dynamic-series)http://www.sencha.com/forum/showthread.php?78514-Ext-Chart-add-series-on-the-fly
Thanks,
Ilan
Can someone point me in the right direction. I'm looking to create a line chart with a variable number of lines. The data:
- Each customer has a variable number of vending machines on premises
- I have 'Total units sold per month', for each vending machine
The chart:
- xvalues = month
- yvalues = units sold
- I want 1 line per machine - showing total units sold per month
The problem:
- I don't know how many machines there will be per customer
- I need to be able to dynamically create a store with a variable number of machines, and a chart with a variable number of series.
I've found some previous forum posts, but the functions they mention (setSeries and updateChart) don't seem to exist in my version of ext = 4.0.7:
http://www.sencha.com/forum/showthread.php?108884-chart-with-dynamic-series
(http://www.sencha.com/forum/showthread.php?108884-chart-with-dynamic-series)http://www.sencha.com/forum/showthread.php?78514-Ext-Chart-add-series-on-the-fly
Thanks,
Ilan