AutoScaling Y-axis when date-axis scale changes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Rogier
Newbie
Newbie
Posts: 9
Joined: Tue Jan 04, 2005 5:00 am
Contact:

AutoScaling Y-axis when date-axis scale changes

Post by Rogier » Thu Mar 17, 2005 4:06 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 18, 2005 10:07 am

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".
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply