View Full Version : How to create a dynamic number of lines (series) in a line chart

19 Jan 2012, 7:10 AM
I am attempting to create a line chart which has several and a
dynamic (variable) number of lines (series). The number of
lines depends on the number of records read in to a data store
using ajax,json proxy.
I have used the ext js 4 line chart example which works fine -
but I do not know how to produce a variable number of lines.

Please can you advise on this.
Thank you bryan

19 Jan 2012, 9:51 AM
You will need to setup your chart component with many series. I wouldn't create the chart until the store that says how many lines should be used is loaded.