auto scrolling and reduced windows view in chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Subsumption
Newbie
Newbie
Posts: 4
Joined: Fri Apr 08, 2005 4:00 am

auto scrolling and reduced windows view in chart

Post by Subsumption » Wed May 17, 2006 6:35 pm

Hi,

I'm building some real time charts and I'm interesting in showing only the <n> last points of it

- using the pages in the chart (with the maxPointPerPage property) is nice but I need the current page (the last one) to be filled at its max and not only one point when we get on a new one

- I've got one method that deletes the first point when I'm adding a point above the configured number of points
(but the problem is that if I change in real time this number of point, I'll have to manage my own buffer to remember the old ones)

- I've got another method using the min and max of the bottomAxis but I'm only controling the time interval, or I can go from my index in the series to its XValues but if I have a bunch of points on the same XValue, I'm not really controlling it...

Anyway, I don't really want to take care of it from my side and I want to know if there is a property, or anything, that can manage that for me.
Maybe even auto-flushing the old point, but something doing it alone...

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue May 23, 2006 8:35 am

Hi,

I'¡m afraid there's no way to control this autimatically. You will have to do it manually, for example in the Timer event, checking if xvalues are the same and then rescale the axis if it's necessary, and also remove the unwanted old points.

Post Reply