Quaries on Real Time trending
Posted: Wed Dec 23, 2009 8:20 am
Hi TeeChart Team,
I am developing a generic chart control that can be used for displaying data as trend and also real time trending of data.
I have gone through the Real Time charting example in the Demo.
I have few quaries for trending the data at real time-
Is it possible to update a single data point at the start potiontion of the Series?
- Suppose i have one series with 200000 data points. I want to show only 1000 data points at any time. Once user scroll, from the actual data source (a double[]) i get the index value and update the series with the new value. Is it possible without drawing the whole control again?
Similarly, one more proper example -
Suppose I have to collect 10 days data of 10 seconds frequency at real time. I have set the chart control to show only 2 hours data at a time. Now once the data starts updating, till first 2 hours its ok, now once the data exceeds 2 hours, i want to remove the data added first in the series and adding the latest data in the Series(same as shown in the TeeChart Demo). In that case once automatic HScroll bar should be visible. Once user scrolls 1 data point in the history, i will get the indexed data from actual data source(a double array) and add it at the first position of the series (??) and remove one data from the Last positoin. Is these possible? If possible then, will it draw the whole chart control again? Will there be any flickering in the control for these small scroll if the data to show at a time is much more (say 5 days)?
It will be very helpful if you can upload an example of these things. I have seen very limited topics on real time trending. This may help the TeeChart users.
Thanks in advance.
Regards,
Avijit
I am developing a generic chart control that can be used for displaying data as trend and also real time trending of data.
I have gone through the Real Time charting example in the Demo.
I have few quaries for trending the data at real time-
Is it possible to update a single data point at the start potiontion of the Series?
- Suppose i have one series with 200000 data points. I want to show only 1000 data points at any time. Once user scroll, from the actual data source (a double[]) i get the index value and update the series with the new value. Is it possible without drawing the whole control again?
Similarly, one more proper example -
Suppose I have to collect 10 days data of 10 seconds frequency at real time. I have set the chart control to show only 2 hours data at a time. Now once the data starts updating, till first 2 hours its ok, now once the data exceeds 2 hours, i want to remove the data added first in the series and adding the latest data in the Series(same as shown in the TeeChart Demo). In that case once automatic HScroll bar should be visible. Once user scrolls 1 data point in the history, i will get the indexed data from actual data source(a double array) and add it at the first position of the series (??) and remove one data from the Last positoin. Is these possible? If possible then, will it draw the whole chart control again? Will there be any flickering in the control for these small scroll if the data to show at a time is much more (say 5 days)?
It will be very helpful if you can upload an example of these things. I have seen very limited topics on real time trending. This may help the TeeChart users.
Thanks in advance.
Regards,
Avijit