Page 1 of 1

Bug in Logarithimic axis

Posted: Tue Nov 15, 2022 7:00 am
by 16594282
Hello,

I just upgraded to the latest version and there is a bug in logaritmic axis max position (appears to be placed in the middle of the axis). I really need a quick fix for this!!!

Re: Bug in Logarithimic axis

Posted: Tue Nov 15, 2022 7:24 am
by 16594282
Hello,

I thing the issue can be found in line 5980 of TeEngine.pas, the following works ok

Code: Select all

if FInverted then result:=Round((ILogMax-ln(Value))*(IAxisLogSizeRange))
                     else result:=Round((ln(Value)-ILogMin)*(IAxisLogSizeRange));
Can you pleae confirm this ok to keep?

Re: Bug in Logarithimic axis

Posted: Tue Nov 15, 2022 10:32 am
by yeray
Hello,

Can you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.

Re: Bug in Logarithimic axis

Posted: Wed Nov 16, 2022 7:15 am
by 16567921
Hello,

Simply drop a TChart component and set Y axis to be logarithmic, minimum 1 and maximum 1000

Re: Bug in Logarithimic axis

Posted: Wed Nov 16, 2022 7:22 am
by yeray
Hello,

This was identified and fixed a few weeks ago. Take a look at the fix here.