Performance for chart

Hi, can you improve performance based on the following usage? This is my sample. Run the project and click the 'click' button.

 


Attachment: SyncfusionTest_cedfddc.rar

13 Replies 1 reply marked as answer

YX YXJ January 4, 2022 07:47 AM UTC

My usage is that chart needs to be refreshed frequently.



GM Gayathri Manickam Syncfusion Team January 5, 2022 02:12 PM UTC

Hi YXJ, 
 
We have forwarded your query to our development team, and they are currently validating the reported query. We will update you with complete details on January 7, 2022. We appreciate your patience until then.  
 
Thanks, 
Gayathri M. 



GM Gayathri Manickam Syncfusion Team January 7, 2022 03:24 PM UTC

Hi YXJ, 
 
We have checked the provided sample and we would like to let you know that you can improve the performance of the chart by removing the data marker from the chart series. Instead of datamarker we suggest to add the FastScatterBitmapSeries and set ShapeType as Triangle as shown in the below code snippet. 
 
LineControl.xaml 
<syncfusion:FastLineBitmapSeries XBindingPath="Name" 
                                     YBindingPath="Value" 
                                     StrokeDashArray ="3,3" 
                                     Interior="Red" 
                                     ListenPropertyChange="True" 
                                     ItemsSource="{Binding Data1}"> 
                <syncfusion:FastLineBitmapSeries.AdornmentsInfo> 
                    <syncfusion:ChartAdornmentInfo ShowMarker="True" SymbolInterior="Red" Symbol="Ellipse"> 
                    </syncfusion:ChartAdornmentInfo> 
                </syncfusion:FastLineBitmapSeries.AdornmentsInfo> 
            </syncfusion:FastLineBitmapSeries> 
            <syncfusion:FastScatterBitmapSeries  
                        XBindingPath="Name" 
                        YBindingPath="Value" 
                        Interior="Red"  
                        ScatterHeight="11"  
                        ScatterWidth="11" 
                        ShapeType="Triangle" 
                        ListenPropertyChange="True" 
                        ItemsSource="{Binding Data1}"> 
            </syncfusion:FastScatterBitmapSeries> 
 
Please see below sample for your reference. 
 
 
Thanks, 
Gayathri M. 


Marked as answer

YX YXJ replied to Gayathri Manickam January 11, 2022 05:39 AM UTC

Thanks for your help, it's very helpful to me.



GM Gayathri Manickam Syncfusion Team January 12, 2022 03:44 PM UTC

Hi YXJ, 
 
We are glad to know that the issue has been resolved. Please let us know if you need any further assistance. 
 
Thanks, 
Gayathri M. 



YX YXJ replied to Gayathri Manickam January 14, 2022 08:38 AM UTC

Hi.

If i want to use 'ListenPropertyChange="True"' for line series, how to improve its performance?



ME Manivannan Elangovan Syncfusion Team January 17, 2022 01:27 PM UTC

Hi YXJ,


To improve performance, we recommend for using FastLineSeries instead of regular LineSeries and also performance is not affected if you update the single data point value with enabling the ListenPropertyChange.


When bulk of data is updated, there is a lag in performance. In this case, you can use the SuspendedSeriesNotification before update the data and again call the ResumeSeriesNotification method. For more details please refer the below UG link.

https://help.syncfusion.com/wpf/charts/performance


Thanks,

Manivannan E



YX YXJ replied to Manivannan Elangovan January 18, 2022 05:57 AM UTC

Hi,

I need data marker for line series.

Can  FastLineSeries meet my needs?



ME Manivannan Elangovan Syncfusion Team January 19, 2022 04:36 AM UTC

Hi YXJ,


FastLineSeries have data marker support but it will lag the performance while zooming and panning the chart area and also at load time when loading the large number of data. Instead of data marker you can use FastScatterBitmapSeries with ShapeType property.


Thanks,

Manivannan E



YX YXJ replied to Manivannan Elangovan January 19, 2022 06:06 AM UTC

Hi,

Thanks for your reply.

However, i need both data marker and line, so do you have any other advice



YP Yuvaraj Palanisamy Syncfusion Team January 20, 2022 02:04 PM UTC

Hi YXJ,  
  
While using data marker(ChartAdornment) with FastLineSeries, it lags the performance of chart. Hence, as we suggested to use the FastScatterSeries instead of data marker.  
 
Could you please share us your exact use case scenario of data marker with FastLineSeries in a pictorial representation or a video with detailed information which will be helpful us to provide better solution at the earliest.  
 
Regards, 
Yuvaraj. 



YX YXJ replied to Yuvaraj Palanisamy January 25, 2022 07:47 AM UTC

Hi,

This is my sample.


Attachment: SyncfusionTest_f32027dd.rar


DD Devakumar Dhanapoosanam Syncfusion Team January 26, 2022 12:58 PM UTC

Hi YXJ, 
 
We have checked the provided sample and found that using LineSeries with ChartAdornment. As we suggested earlier, we recommend FastLineSeries and you can use FastScatterBitmapSeries instead of the data marker for better performance. 
 
Please refer the below code example using FastLineSeries and FastScatterBitmapSeries as the line series data marker. 
 
LineControl.xaml 
<syncfusion:FastLineSeries StrokeDashArray="3,5" 
            XBindingPath="Name" 
            YBindingPath="Value" 
            Interior="Red"  
            ListenPropertyChange="True" 
            ItemsSource="{Binding Data6}"> 
    <syncfusion:LineSeries.AdornmentsInfo> 
        <syncfusion:ChartAdornmentInfo 
            ShowMarker="True" 
            Symbol="Ellipse"> 
        </syncfusion:ChartAdornmentInfo> 
    </syncfusion:LineSeries.AdornmentsInfo> 
</syncfusion:FastLineSeries> 
<syncfusion:FastScatterBitmapSeries   
            XBindingPath="Name"  
            YBindingPath="Value"  
            Interior="Red"  
            ScatterHeight="11"   
            ScatterWidth="11"  
            ShapeType="Ellipse"  
            ListenPropertyChange="True"  
            ItemsSource="{Binding Data6}"> 
</syncfusion:FastScatterBitmapSeries> 
 
Please see below sample for your reference.  
 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon