Insert old data points

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
mattmobilemedtek
Posts: 28
Joined: Tue Sep 30, 2014 8:06 pm

Insert old data points

Post by mattmobilemedtek » Fri Oct 02, 2015 6:38 pm

Right now I have drop old data turned off for my graph with several SampleDataSeries on it. However, after about 6 hours the application eats up all of the RAM and stops. I know I need to turn DropOldData on, but what do I do if the user wants to review data that has been dropped? There isn't an insert data method in SampleDataSeries, or in PointLineSeries. I could use FreeformDataSeries, but there's a strong warning in the code saying:

The points don't have to be in successive order by X value. If they are used in successive order
in your application, you should use PointLineSeries or SampleDataSeries instead for optimal performance.
Freeform point line series causes significantly higher CPU/GPU load than other line series types, when
the series point count is high.

So how do I reload old data? What series should I use?

Thanks again Pasi!
Matt

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Insert old data points

Post by ArctionPasi » Fri Oct 02, 2015 7:20 pm

Hi Matt,

write your data to hard disk and when reviewing, load it from there to SampleDataSeries. When in review, set DropOldSeriesData = False, and when resuming again, set it back to True.
LightningChart Support Team, PT

Post Reply