AxisValuesFormat

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

AxisValuesFormat

Post by TheRoadrunner » Thu Jun 28, 2007 11:36 am

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

TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

Post by TheRoadrunner » Thu Jun 28, 2007 11:42 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 28, 2007 2:20 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

Post by TheRoadrunner » Fri Jun 29, 2007 5:04 am

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

Post Reply