Page 1 of 1

Axis Scale problem

Posted: Fri Nov 18, 2016 11:28 am
by 16478631
Hi,

by changing TeechartPro 2011 to TeechartPro2012_2016 my application will have a Problem by scaling the axis. If I have paramized on manual axis mode, scalation from 0 ..10, scale step 0.1 and a small chart size, I see the scalation starts from 0 with the steps of 0.8 . The end value of 10 will be not displayed.

How can I Change this ?

Inside the little graphic file you can see this better !


Best regards

Udo

Re: Axis Scale problem

Posted: Mon Nov 21, 2016 1:23 pm
by yeray
Hello,
weidunu wrote:If I have paramized on manual axis mode, scalation from 0 ..10, scale step 0.1 and a small chart size, I see the scalation starts from 0 with the steps of 0.8 .
I understand that's the correct behaviour. setting an Increment of 0.1 means the chart will try to draw labels with that increment when they aren't overlapping. If they are overlapping, TeeChart searches for the minimum increment that will allow drawing the labels without overlapping, from that value you've set. So the size of the axis and the labels font also affect this internal calculation.
If you want to force an increment, being responsible of the label overlapping, you can use custom labels.
weidunu wrote:The end value of 10 will be not displayed.
Have you tried adding some MaximumOffset to the axis?

Re: Axis Scale problem

Posted: Mon Dec 19, 2016 8:27 am
by 16478631
Hello Yeray,

sorry for writing so late, but I was very bussy. I set the range of an axis with the SetMinMax-function and in the past it works very fine.
The old algorithm was for me better.

Beste regards

Udo

Re: Axis Scale problem

Posted: Mon Dec 19, 2016 9:24 am
by yeray
Hello Udo,

We'll be pleased to check what changed and if there's anything we can improve if you can arrange a simple example project we can run as-is to reproduce the problem here.