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

UI freezes when loading large amount of data

Thread ID:





120288 Sep 17,2015 02:43 PM UTC Sep 21,2015 12:25 PM UTC UWP 3
Tags: SfChart
Asked On September 17, 2015 02:43 PM UTC

I have an observable collection that I am binding to a LineSeries. This collection contains a large amount of data 5000+ points.
When the graph loads the collection it freezes the UI, for a considerable amount of time, while it plots the points.
I am using the scroll view, so only 200 points are shown and you can scroll backwards to see the others. I would expect this to minimize the plotting time?

Is there some performance stuff I am missing or not doing properly?
Is there a better way I can load a large amount of data into the graph without blocking the UI completely for a long period of time?

Another issue, although I think related to the amount of data, is that the scroll view is very laggy and also the x axis legend labels disappear when scrolling backwards.

Below I have included some code snippets to help explain my problem.

Many thanks for your help.

public Graph()
this.Points = new ObservableCollection<ChartPoint>();
XAxis.ActualRangeChanged += XAxis_ActualRangeChanged;
series1 = new LineSeries();
series1.XBindingPath = "Date";
series1.YBindingPath = "X";
series1.ItemsSource = this.Points;
series1.ShowTooltip = true;
series1.EnableAnimation = false;
series1.Label = "X Data";
private void XAxis_ActualRangeChanged(object sender, ActualRangeChangedEventArgs e)
    if (!e.IsScrolling && e.ActualMaximum != null)
        e.VisibleMinimum = (double)e.ActualMaximum - 200d;

<chart:SfChart  x:Name="chart" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,0,15,0">
                            <TextBlock x:Name="header" FontSize="20" FontFamily="Segoe UI" Margin="0,0,0,20">
                                Chart Header
                            <chart:ChartLegend x:Name="legend"></chart:ChartLegend>
                            <chart:CategoryAxis x:Name="XAxis"

Muneesh Kumar G [Syncfusion]
Replied On September 18, 2015 01:06 PM UTC

Hi Andrew,

Thanks for using Syncfusion products.

We can achieve your requirement by using FastLineBitmapSeries, it provides better performance when loading large amount of data. We have created sample with more than 5000 points. Please find the sample from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/120288/ze/Sample1582321444

Please let us know if you have any queries.

Muneesh Kumar G.

Replied On September 18, 2015 03:41 PM UTC

Hi Thank you for the reply.
I have implemented my graphs as you suggested, as a FastLineSeries.
It does load the data very fast, however not far into the data the graph starts to become blurred, as can be seen in the screenshot attached.

Any ideas why it is blurred?

Many thanks for the help.

Attachment: Capture_1f680c68.7z

Rachel A [Syncfusion]
Replied On September 21, 2015 12:25 PM UTC

Hi Andrew,

Thanks for the update.

We are unable to reproduce the problem. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates





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