Page 1 of 1

AutoScaling Y-axis when date-axis scale changes

Posted: Thu Mar 17, 2005 4:06 pm
by 8128465
Hello,

If you look at the following chart, you'll see a plain series
and two average series.
These two average series calculate the average of the
plain series over a period of 50 and 100 days.
Image

The date axis starts at 18/01/05 and ends at 18/03/05.
As you can see, the averages start at the same value as
the plain series does. Altough this is correct I'd rather have
the averages calculated on 50 or 100 values before
18/01/05.
In the next picture you can see the result when I added more
values before 18/01/05 and then set the date axis to only show
the values from 18/01/05 to 18/03/05.
Image

This looks quite ok, but if you look at the Y-Axis the scale is
now from 320 to 380. Is there any way I can automatically
scale this Y-axis so that the series are shown over the full
height of the image ?

Rogier

Posted: Fri Mar 18, 2005 10:07 am
by narcis
Hi Rogier,

You could have a look at the "Realtime charting" example available in the TeeChart features demo.

This example how to implement automatic axis range scaling.

The demo can be found in the TeeChart program group. Run the demo and search for "axis scaling".