We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

While zooming the chart it consume more memory it is reached up to 5-6 gp

Hi Team,

We are using syncfusion chart in our application. In our app last to compare last year sales growth using line chart.
While using that we got to know while zoom the chart it consume more memory. It leads to app crashing.
Maximum it reached 6gp for single chart alone.
Can you please give the correct approach to handle this situation.

Thanks,
Tamilmani

1 Reply

MK Muneesh Kumar G Syncfusion Team October 29, 2019 09:55 AM UTC

Hi Tamilmani, 
  
Greetings from Syncfusion.  
 
We have analysed your query and we would like to let you know that we always suggest to use FastLineSeries for large number of points for better performance. Please follow the below steps to reduce the memory consumption while perform zooming.  
 
·         Use DateTimeAxis and NumericalAxis to plot x-range and y-range instead of CategoryAxis. 
·         Use Trackball or Tooltip to view the data point info instead of using DataMarker. 
·         Set the StrokeWidth of FastLineSeries to 1 by default its value is 2. 
·         Set the EnableAntiAliasing property as false for FastLineSeries. 
 
Some other guidelines to increase the performance:    
 
In case, if you are working with live data, please refer the below steps to optimize the chart performance: 
 
·         We can able to hold the chart from updating of each data added to the collection, using SuspendSeriesNotification and ResumeSeriesNotification methods in chart control, the chart will not respond to any change in the items source collection after the SuspendSeriesNotification method is invoked. It will be updated with latest data after the ResumeSeriesNotification method is invoked.   
·         Try to remove the data which is not visible in view.  
·         Try adding bulk data instead of adding single data points with some delay. 
·         Try to update the collection in background thread instead of updating in UI main thread.  
 
Please refer the below help document for Chart performance.  
  
Please let us know if any further assistance. 
 
Thanks, 
Muneesh Kumar G 


Loader.
Live Chat Icon For mobile
Up arrow icon