Page 1 of 1

Chart Refuses To Draw Axis As Specified

Posted: Wed Sep 23, 2020 12:42 am
by 16689453
I've tried this using both TeeChart201664.ocx and TeeChart201964.ocx, but I can't get it to behave and can't seem to find a way to force it.

I've turned off "automatic" and set my left axis limits manually. The editor shows that this setting has 'taken' but the chart refuse to draw to the specified limit.

In this case the maximum is set to 170, but the chart will only draw to 160.

tcharterr.png
tcharterr.png (38.81 KiB) Viewed 39538 times

Is there some other setting that I haven't considered? In the same process of calculating the left-axis limits I set the right-axis limits and that behaves as I'd expect.

Re: Chart Refuses To Draw Axis As Specified

Posted: Wed Sep 23, 2020 1:09 am
by 16689453
Nevermind - I figured out I need to call AdjustMinMax after SetMinMax for the axis. This is not clear in the documentation, but arguably shouldn't be necessary? If "Automatic" is FALSE doesn't setting the min/max imply that I want to use those limits?

Re: Chart Refuses To Draw Axis As Specified

Posted: Fri Sep 25, 2020 1:58 pm
by yeray
Hello,

Calling SetMinMax is usually enough to reflect the changes immediatelly. If it doesn't it may be because some other setting in the chart is impeding it. Do you have AutoRepaint set to false?
If you still find problems with it, please arrange a simple example project we can run as-is to reproduce the problem here.