Nevron Forum

Is there a limit to the number of series than can be successfully added to a chart?

https://www.nevron.com/Forum/Topic7045.aspx

By Kevin Harrison 1 - Wednesday, November 7, 2012

We have a user who has foolishly tried to add 200,000 series with two points in each to a standard 2-D chart. This hangs our application (still not plotted after leaving overnight) and possibly brings down the whole PC. Is there a known limit to the number of plottable series? Plotting well over 400,000 points on a single series is no problem.

We would at least have expected an "Out of memory" error (and much quicker thasn overnight)

Thanks

Kevin

By Nevron Support - Wednesday, November 14, 2012

Hi Kevin,

We tested a similar case with 200000 line series, but removed the data labels and the legend. It took about one minute for the chart to render (most of the time is actually spent in object creation).

The chart allocated more than a gigabyte, but obviously this is not enough for an "out of memory" exception.

It looks that the text measurement and rendering in the legend takes a lot of time, which causes the chart to "hang" when the legend is visible.
By Kevin Harrison 1 - Wednesday, November 21, 2012

Thanks for the information. I've now restricted the legend items to a maximum of 64, which allows me to draw 100,000 lines / bars with no problems (and quite quickly). I've also restricted the number of series to 1024 anyway. Anyone puting even that number on a chart needs their head examined