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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Updating multiple charts slows down the UI

Thread ID:

Created:

Updated:

Platform:

Replies:

125278 Aug 4,2016 05:08 PM UTC Aug 5,2016 01:26 PM UTC Xamarin.Forms 1
loading
Tags: SfChart
Sarbjit Singh
Asked On August 4, 2016 05:08 PM UTC

I have an application which shows multiple charts on tablet. I am using following:
1. HttpClient class to connect to web service and fetch the chart data.
2. ViewModel which fetches the data and update the charts's model
The charts are refreshed at interval of 5 seconds. If i update all the charts (around 15), application hangs and UI is non responsive. I think it could be because I am updating the model for charts on main thread. Is it possible to update chart data on some user thread?
Here is the code snippet for updating the chart model from dto (data transfer object) from web service, this model is binded with charts.
var dto = await Controller.Instance().DbService().FetchLineChartData(id).ConfigureAwait(false);
Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
{
if (dto != null)
{
model_.Update(dto);
}
});

Jaikrishna Chandrasekar [Syncfusion]
Replied On August 5, 2016 01:26 PM UTC

Hi Sarbjit, 
 
Thanks for contacting syncfusion support. 
 
We are unable to reproduce the issue from the provided information. Please give more information (like series, number of dataPoints, etc). This would be helpful for us to serve you better. 
 
Regards, 
Jaikrishna C 


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

or the page will be automatically redirected to 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

;