Panning into X Axis in Real-time monitoring graphic
Moderator: Queue Moderators
-
- Posts: 4
- Joined: Tue Oct 21, 2014 2:14 pm
Panning into X Axis in Real-time monitoring graphic
Why is data lost when I do panning repeatedly into X Axis after X seconds of data generated in a Real-time monitoring graphic using the Signal Generator Component? The same problem occurs in Thread-fed multi-channel data example in demo of the application when I try to do panning in X axis after the generation of data is stopped. What is the problem? Is there any way to solve this problem? I don't want to lose data.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Panning into X Axis in Real-time monitoring graphic
Hi,
when ViewXY.DropOldSeriesData is enabled, the chart destroys data points that fall below X axis minimum from the series intended for scrolling real-time monitorings: SampleDataSeries, PointLineSeries, AreaSeries and HighLowSeries. The destroying is made when X axis range changes.
It is made so that the programmer doesn't have to destroy the data points manually. If you have lot of data points, the computer will run out of memory if data points are not destroyed.
The solution for this is: set ViewXY.DropOldSeriesData = false after stopping the monitoring. Then it will keep all the data when panning and zooming the view.
when ViewXY.DropOldSeriesData is enabled, the chart destroys data points that fall below X axis minimum from the series intended for scrolling real-time monitorings: SampleDataSeries, PointLineSeries, AreaSeries and HighLowSeries. The destroying is made when X axis range changes.
It is made so that the programmer doesn't have to destroy the data points manually. If you have lot of data points, the computer will run out of memory if data points are not destroyed.
The solution for this is: set ViewXY.DropOldSeriesData = false after stopping the monitoring. Then it will keep all the data when panning and zooming the view.
LightningChart Support Team, PT
-
- Posts: 4
- Joined: Tue Oct 21, 2014 2:14 pm
Re: Panning into X Axis in Real-time monitoring graphic
ok, I solved my problem. Thanks