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: 3 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




Similar Topics


Reading This Topic