This is a migrated thread and some comments may be shown as answers.

Perfomance issues

3 Answers 23 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 22 Mar 2019, 08:35 AM

Hi,

I've a performance problem with the charts.
Background:

- It's a C# / WPF application mit MVVM Pattern
- Variable amount of Lines Series. My test scenario was with 15 Lines.
- Amount of datapoints of each line: First scenario = 2.000, Second Scenarion 20.000
- Horizontal Axes = DateTime
- Approx time to show the chart: First scenario around 2 seconds, Second Scenarion around 10 - 15 seconds

You can find my XAML Code attached.

How can I improve the performance ?
It can be that a value is the same over a time. For now I have for example for every 15Minutes a point. Even if it's the same value over the whole day.
Is it possible to define one point and to say that it is the same for x hours instead of have hundreds of points ?


Regards
Stefan




3 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 1
answered on 22 Mar 2019, 09:05 AM
Find attached an example how it look like later on....

We have datapoints every 15 minutes and actually we show one week with the possibilty to zoom in to see 15 minute values.
The upper green line has the same value for approx half day on monday 28.01. but I have to set every 15 minutes a datapoint ?
Or can I set a datapoint on Monday 00:00:00 and  a point on Monday 16:21:20 and the chart will fill it automaticly ?

More dramatic it will be for digital signals ( lower chart ).
Category S2
The Signal is On ( 1 ) ( thin red line ) only once a day for 2 or 3 Minutes, but a have to set thounsands of point s with Off ( 0 ).
0
Stefan
Top achievements
Rank 1
answered on 22 Mar 2019, 09:06 AM
Second try to upload the pic
0
Martin Ivanov
Telerik team
answered on 27 Mar 2019, 08:14 AM
Hello Stefan,

You can try to improve the performance also with the Direct2DRender options of the series.

About skipping data points, yes, you can do this in your scenario. If you have many consecutive data points with the same vertical value, you can just keep the first and the last one, and remove the rest from your data set.

For example, if your data is live (updated on a time interval), you can plot the first point, then if the next one is has the same vertical value plot it too. Then for each next point, check if the previous one has the same vertical value and in this case just update the previous point instead of adding the new one. This operation should get re-started once a data point with a different vertical value comes.

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or