Page 1 of 1

Panning with Log Axes can bring negative values

Posted: Fri Jan 04, 2008 4:09 pm
by 9343260
Hello,

If you have an axis with Logarithmic = true and the panning tool activated, you can scroll the chart until the logarithmic axis has negative min and max.

The negative values are not displayed, but this causes some strange behaviour with the labels.

I guess a test should be made in class TChartAxis to avoid having negative values on a logarithmic axis. What do you think ?

Regards

Posted: Fri Jan 04, 2008 5:16 pm
by 9047589
Hello!
Unless you are indeed ready to dive into deep details of TeeChart, IMHO it's more simple just to trap OnAllowScroll event and do not allow scrolling logarithmic chart beyond respective domain.

Posted: Mon Jan 07, 2008 8:01 am
by 9343260
Excellent idea, I had never used the OnAllowScroll event and didn't think about it.

Works fine, thanks.

Although I still think adding a test in TChartAxis class to avoid logarithmic < 0 would not be a too bad idea :wink:

Posted: Mon Jan 07, 2008 9:31 am
by narcis
Hi bertrod,

Ok, I've added your request to our wish-list to be considered for inclusion in future releases.