Performance when switching from LiveCharts to LiveCharts2 #2018
Replies: 2 comments 2 replies
-
|
It won't improve. Around 5k points is a limit. Even if they're out of visual scope, the chart will work slow. So you need to dynamically add and remove points if you plan on scrolling through timeline. |
Beta Was this translation helpful? Give feedback.
-
|
I didn't check the source code, but apparently the more points you have, slower it gets. Smells of O(n^2) downgrade. Mr. Rodrigez should check this. A lot of stuff could be set for O(1) or O(n) as datetimeaxis that are interval based and sorted don't require checking whole data set. Edit: I noticed if you have custom visuals it will start to work really slow. Without custom drawing you can get fairly smooth canvas, but as soon as you show one visual, it will process exponentially slower. I tried with integrated linevisual and it doesn't harm charts as much as custom linevisual. There must be something to it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using LiveCharts with WPF on .NET Framework. Plotting 2,000 points × 10 series takes nearly 100 seconds, so I'm looking for ways to improve performance.
If I switch from LiveCharts to LiveCharts2, will performance improve?
If the paid edition of LiveCharts2 would improve performance, please tell me how to purchase a license.
Beta Was this translation helpful? Give feedback.
All reactions