Scaling Max value less than 1

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jeff S
Newbie
Newbie
Posts: 13
Joined: Thu Jul 03, 2003 4:00 am

Scaling Max value less than 1

Post by Jeff S » Fri Apr 13, 2007 4:32 pm

Hello,

When I try to set the Max value for scaling on the left axis to < 1 , say 0.4. it seems that Teechart automatically resets the value to 1 and the left axis ranges display from 0 to 1 and not 0 to 0.4.

Setting the Max value > 1 scales perfectly.

Any help greatly appreciated.

regards,
Trev

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Apr 16, 2007 8:09 am

Hi Trev,

We couldn't reproduce your problem here using teechart 7.07. What version are you using?

The following code works for us:

Code: Select all

Chart1.Axes.Left.AutomaticMaximum := false;
Chart1.Axes.Left.Maximum := 0.4;
Also you can try to type casting as follows:

Code: Select all

Chart1.Axes.Left.AutomaticMaximum := false;
Chart1.Axes.Left.Maximum := (double)0.4;
If your problem persists, could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jeff S
Newbie
Newbie
Posts: 13
Joined: Thu Jul 03, 2003 4:00 am

Post by Jeff S » Mon Apr 16, 2007 10:25 am

Thank you for the response. I finally got it working. It was a logical error in my own code.

regards,
Trev

Post Reply