Page 1 of 1

Quaries on Real Time trending

Posted: Wed Dec 23, 2009 8:20 am
by 15654246
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

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 12:16 pm
by 10050769
Hello Avijit,
I am developing a generic chart control that can be used for displaying data as trend and also real time trending of data
Please bear in mind that if you are developing a charting control, please check that your organisation has a license in place to permit distribution of such a control.
Is it possible to update a single data point at the start position 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?
I'm sorry, but you don't update a only one value in the series. If you would update one value only solution is that update all Series.
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.
I recommend that you read next explanation in article, because I think that can help you in it and previous question. Also you can see example of Demo Welcome !\Speed\Realtime charting but instead of adding data behind you add data to front. For example if you have data between 10 and 20 you can add value in 9. If you can get values to Min and Max values of Bottom Axis.
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 position. Is these possible?
Is not possible to add directly and array maintaining series data. You must loop through the series and add points manually.
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's relative, because this depends of more factors, for example: number of series, number point of series, depends of elements of chart appearing, etc.

Thanks,

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 2:47 pm
by 15654246
Hi
Please bear in mind that if you are developing a charting control, please check that your organisation has a license in place to permit distribution of such a control.
We have valid license for design and development.
Please let me know if we require any extra license for distribution.

Regards,
Avijit

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 2:53 pm
by narcis
Hi Avijit,

Please let us know the exact nature of the charting control you spoke about. Is this a control which includes TeeChart and which you distribute to your clients? Thanks in advance.

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 3:45 pm
by 15654246
Hi,
Yes. This is one Charting control which includes TeeChart and this charting control is hosted in anothor Form(our main Application).

Regards,
Avijit

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 4:08 pm
by narcis
Hi Avijit,

Is this control only used in your own applications or is also distributed as such?

Thanks in advance.

Re: Quaries on Real Time trending

Posted: Wed Dec 23, 2009 4:43 pm
by 15654246
Hi,
The Charting Control that uses TeeChart is only used in our Application.

Regards,
Avijit

Re: Quaries on Real Time trending

Posted: Thu Dec 24, 2009 8:07 am
by narcis
Hi Avijit,

Ok, thanks for the info. I think license is correct then.