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.
MKMuneesh Kumar G Syncfusion Team October 29, 2019 01:55 AM
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 optimizethe 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.