Chart history amount

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ande
Newbie
Newbie
Posts: 2
Joined: Fri Mar 04, 2016 12:00 am

Chart history amount

Post by ande » Mon Apr 11, 2016 5:32 am

Hi,
I log sensor data to chart about ten times/ second using Series[0].Add . Where is the data stored and can I adjust how much data is stored in that 'buffer' ?
Because basically everything works well but because that PC is not too fast there is update problems when I have much data on chart 'buffer' ( hundreds of thousands) .
Or is there any more practical method to collect that kind of data ? I think my current method leads to some kind of overflow in some point anyway if there is no limit how much data is collected to chart.

For my application about 40 000 history points will be enough and I need to show only about 1000 points simultaneously on screen. Other data should be available by scrolling the chart.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Chart history amount

Post by Christopher » Mon Apr 11, 2016 7:45 am

Hello,

Yes, you can use the Series.Delete method - there is an example of how to do this in the Feature Demo under:

%PROGRAMFILES(x86)%\Steema Software\Steema TeeChart for .NET 2015 4.1.20XX.XXXXX\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe
realtime.PNG
realtime.PNG (212.77 KiB) Viewed 5841 times
All Features -> Welcome !\Speed\Realtime charting
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

ande
Newbie
Newbie
Posts: 2
Joined: Fri Mar 04, 2016 12:00 am

Re: Chart history amount

Post by ande » Tue Apr 12, 2016 5:40 am

Thanks for you suggestion, works perfectly.

Ande

Post Reply