Foundries on .NET diagrams have an upper limit?

I am new to charting functions in the .NET System.Windows.Forms.DataVisualization.Charting .NET library. During my experimental prototyping, I created a chart to which I can add random points, change the type of chart, etc. But I noticed that every time I add more than 34998 points to the chart (regardless of the type of chart used), the whole chart disappears and is replaced by a large "X". No exception is thrown, and it does not appear to be a limitation of the point collection itself. (If I go through the code when adding the 34999th point, it will be added to the collection just fine, but as soon as the chart is repainted, it will immediately be replaced by X).

I understand that this is a large number of points on the diagram in the first place, and I plan to consider some thinning methods to dump samples of my input data. But I was just wondering if there is a hard limit for this number, and which module in the system is the actual limitation (data set, canvas for drawing, etc.). I could not find mention of this in the documentation . Does anyone know of such a limit?

+6
source share
1 answer

This line chart has 2 series with 1,000,000 points each: enter image description here

and it takes 6 seconds to render. I guess this is just available memory. One of the common reasons for Big Red X Fate is that the points you add are outside the minimum and maximum axis values ​​if you manipulate them.

+2
source

All Articles