Profile Picture

Asp.Net NThinChartControl: How to change cursor to wait cursor for very large data series

Posted By joern kunze 7 Years Ago

Asp.Net NThinChartControl: How to change cursor to wait cursor for...

Author
Message
joern kunze
Question Posted 7 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 86, Visits: 221
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

Nevron Support
Posted 7 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,018
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.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic