Background render of SfChart

Hello,
I have multiple heavy SfCharts that take a few seconds to render (UpdateArea takes most of the time). The loadtime itself is not a big problem, just the fact that the entire page is frozen when this happens. Is there a way to render the chart with a lower dispatcher priority or in the backgorund?
Note that I am not talking about loading the data in the background, this already happens it is about the rendering itself. I already found a solution for the panel resize:
protected override void OnRootPanelSizeChanged(Size size)
{
if(Math.Abs(_size.Height - size.Height) < 10 && Math.Abs(_size.Width - size.Width) < 10) return;
_size = size;
Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new Action(() => base.OnRootPanelSizeChanged(_size)));
}
Can something similar be done for the rendering of the chart area?
Thanks,
Emanuel

4 Replies

YP Yuvaraj Palanisamy Syncfusion Team April 26, 2021 01:59 PM UTC

Hi Emanuel, 
 
Greetings from Syncfusion. 
 
This is a general update to let you know that our support team has taken out your query and they are starting to work on it. We will share the validated details on or before 28th April, 2021. 
 
Regards, 
Yuvaraj. 



YP Yuvaraj Palanisamy Syncfusion Team April 27, 2021 02:35 PM UTC

Hi Emanuel, 
 
Thanks for your patience. 
 
The fixed range of chart axis (for minimum and maximum property) does not calling the UpdateArea(). And when we change the axis range by updating the chart datapoint and resizing the chart, the axis label has been updated by calling of ChartArea(). This is the current structure of SfChart in wpf.   
 
Hence, we have already logged the feature request for improving the performance of WPF chart. Please track the status of the feature from the below feedback link, which will be included in any of our upcoming release. 
 
 
Regards, 
Yuvaraj. 



EM Emanuel April 27, 2021 05:10 PM UTC

Hello,

Thanks for your support. I'm looking forward for the fix in the future.

Emanuel


SM Saravanan Madheswaran Syncfusion Team April 28, 2021 02:04 PM UTC

Hi Emanuel,  
 
Most welcome, As promised the feature will be available in any of our upcoming release, please follow the below feedback link. 
 
 
Regards, 
Saravanan.  


Loader.
Up arrow icon