View Full Version : Line chart with variable number of series

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:


25 Jan 2012, 3:21 AM
Ok, please ignore, I've found the answer: