Page 1 of 1

AxisValuesFormat

Posted: Thu Jun 28, 2007 11:36 am
by 9348284
Hi,

I very much like the Axes ability to select the right display-format according to the values on the axes (leaving AxisValuesFormat unchanged), since it works so great with zooming :D, which a fixed setting of AxisValuesFormat doesn't. :(
But (there's always a but isn't there), when an axis shows values e.g. in the range 40 - 42, it concludes that labels are due for 40 40.5 41 41.5 and 42 and I agree, but it would look SO much better if all five values were shown with the same number of decimals (1), that is 40.0 40.5 41.0 41.5 and 42.0
That would be really cool 8) Is there an easy way to achieve this?

Best
Søren

Posted: Thu Jun 28, 2007 11:42 am
by 9348284
I just discovered one more angle to this:

The Axis.Title, which in my case is written at an angle of 90, is positioned relative to the topmost label.
This means when the topmost label shows 42, the title collides with the labels with one decimal. When panning the chart so the topmost label shows 41.5 the title positions correctly.

Best
Søren

Posted: Thu Jun 28, 2007 2:20 pm
by narcis
Hi Søren,
But (there's always a but isn't there), when an axis shows values e.g. in the range 40 - 42, it concludes that labels are due for 40 40.5 41 41.5 and 42 and I agree, but it would look SO much better if all five values were shown with the same number of decimals (1), that is 40.0 40.5 41.0 41.5 and 42.0
That would be really cool Cool Is there an easy way to achieve this?
Yes, you can achieve that using AxisValuesFormat property as described in Tutorial 4 - Axis Control. You'll find the tutorials at TeeChart's program group.

Code: Select all

The Axis.Title, which in my case is written at an angle of 90, is positioned relative to the topmost label.
This means when the topmost label shows 42, the title collides with the labels with one decimal. When panning the chart so the topmost label shows 41.5 the title positions correctly.


Yes, the solution to this is setting LabelsSize as told here.

Posted: Fri Jun 29, 2007 5:04 am
by 9348284
narcis wrote:Yes, the solution to this is setting LabelsSize as told here.
This was on your defect list in Feb, 2006. Knowing the excellent service from Steema, this would normally be fixed by now ;)

Still your support efforts are second to none :D

Best
Søren