Left Axis title overlaps Label if decimal values

TeeChart for ActiveX, COM and ASP
Post Reply
TimM
Newbie
Newbie
Posts: 13
Joined: Thu Apr 12, 2007 12:00 am

Left Axis title overlaps Label if decimal values

Post by TimM » Thu Sep 06, 2007 5:44 pm

Is there any way to put padding between the title of the left axis and numeric labels of data?

I have a situation where my left axis title is a single line, however I have numeric data with 2 decimal values e.g. 10.75 (this is using an automatic scale) and it overlaps the numeric labels.

Is there any way to move the left edge of the graph in a bit? Or specify some padding for the left axis title?

I couldn't see any way of doing it with the settings dialog and couldn't see anything in the api?

Any tips for this?

Tim

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

Post by Narcís » Fri Sep 07, 2007 8:12 am

Hi Tim,

Yes, you can set this distance by setting a custom label size, for example:

Code: Select all

    TChart1.Axis.Left.Labels.Size = 50
Hope this helps!
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

TimM
Newbie
Newbie
Posts: 13
Joined: Thu Apr 12, 2007 12:00 am

Post by TimM » Sat Sep 08, 2007 4:20 pm

That worked perfectly thanks!

(In fact even in Smalltalk it translates perfectly as:

chart axis left labels size: 20.

)

Post Reply