Display of a fixed count X-values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
UFriedrich
Newbie
Newbie
Posts: 9
Joined: Fri Dec 03, 2004 5:00 am
Location: Germany

Display of a fixed count X-values

Post by UFriedrich » Thu Aug 02, 2007 7:44 pm

Hello,

how can I solve the following problem:

Let's assume I have a chart series with 500 values. But I'll only see a section of the last 100 values (index 400 - 499). That means 400 values (index 0 - 399) are on the left hand side outside of the visible section. If I add a new value on the right hand side (500) now I'll see still 100 values (but now index 401 - 500) like a first in first out rule. If on the right side a new value is coming in on the left side a value is going out. The invisible values on left hand side should be visible by scrolling.

How can I solve such a problem?

Thanks in advance
UweF

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Re: Display of a fixed count X-values

Post by xxxxxx » Thu Aug 02, 2007 10:05 pm

Hi, Uwe!
If I got your idea rigth then so

Code: Select all

  YourSeries.AddY(NewYValue);
  YourChart.BotomAxis.SetMinMax(YourSeries.Count-101,YourSeries.Count-1);
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

Post Reply