By joern kunze - 7 Years Ago
|
Hi experts,
I want to display a NQuickPointSeries with many data points (nearly one million) within a NThinChartControl. Basically this is working if memory is sufficient . But it takes very very long to do so (more than 1 minute) ! Same problem when zooming in afterwards - takes almost as long as showing the Chart in the first place.
Copying the data in doesnt take long: NChart chart = NThinChartControl1.Charts[0]; chart.Series.Clear(); NQuickPointSeries nSeries = new NQuickPointSeries(); nSeries.UseXValues = true; nSeries.UseZValues = false; chart.Series.Add(nSeries); nSeries.Values.AddRange(listY.ToArray()); nSeries.XValues.AddRange(listX.ToArray()); NThinChartControl1.Update();
But after this function has been finished, it takes a very long time before the Chart is actually rendered to the screen.
Is there a way to show the user that the Chart is busy? I would like to change the cursor to a wait cursor - but I could find no Chart event which indicates that rendering the data series to screen has actually been finished (after initialization and after zooming).
Thanks for your help, Best regards, Joern
|
By Nevron Support - 7 Years Ago
|
Hi Joern, We haven't implemented a loader image when the chart uses instant zoom as in general it should respond very fast to the request - however for such a large dataset the deserialization from session state / rendering is what it takes so long. We would recommend to resample the data set using a cluster or other sampling code in order to improve performance. We can also send you sample code that achieves that.
|
|