100K points FastLineSeries

Hi,

I'm trying to use a FastLineSerie to render 100'000 points.

But when the chart draws the lines it's very slow (3-4s).  And when I'm resizing the window , it takes a lot of time to redraw the chart.
I need the charts to render fast, because when the user chooses a value the chart will be drawn.

Is there a solution to boost the performance or to make the charts draw more smoothly ?

Thanks

Sample : test with 100 000 points

Attachment: 100k_Points_7b959e2a.zip

3 Replies

DV Divya Venkatesan Syncfusion Team March 16, 2018 07:00 AM UTC

Hi Torrent, 
 
Thanks for using Syncfusion products. 
 
Are you able to share some details about your data? Since the performance of fast line chart is highly dependent on its data. For example, in the below screencast, the real-time data(minimal variations between two data points) is plotted and chart loads it within a second for the same 100K data points count. But in your sample, you have just added the random data which leads to fill the same pixel multiple times. 
  
  
  
Few more general points to improve the performance, 
1.    Reduce the thickness of the line to 1 from 2(default).  
2.    Avoid to use data labels, instead use trackball or tooltip to view the information about the data point.  
3.    Make use of suspend and resume methods in Chart for adding bulk data points.  
4.    Disable the anti aliasing of line. (We have disabled it in above sample in platform specific code).  
  
Please refer the following user guide document. 
 
Regards, 
Divya Venkatesan 



JT Julien Torrent March 16, 2018 10:44 AM UTC

Hi,

I'   I've just changed the thickness of the line and it helped a lot. 
     I've looked at your other suggestion and it helped me a lot.
    Thanks







DV Divya Venkatesan Syncfusion Team March 19, 2018 09:05 AM UTC

Hi Torrent,

Thanks for the update. We are glad to know that the given solution works.

Please get back to us if you need any further assistance.

Regards
Divya Venkatesan

Loader.
Up arrow icon