Page 1 of 1

Scaling Max value less than 1

Posted: Fri Apr 13, 2007 4:32 pm
by 8438518
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

Posted: Mon Apr 16, 2007 8:09 am
by yeray
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

Posted: Mon Apr 16, 2007 10:25 am
by 8438518
Thank you for the response. I finally got it working. It was a logical error in my own code.

regards,
Trev