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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

148567 Oct 25,2019 05:33 AM UTC Oct 29,2019 09:55 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Selvaraj, Tamilmani
Asked On October 25, 2019 05:33 AM UTC

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

Muneesh Kumar G [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon