Need help with custom axis labels.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lt411
Newbie
Newbie
Posts: 1
Joined: Fri Apr 07, 2006 12:00 am

Need help with custom axis labels.

Post by lt411 » Thu Nov 30, 2006 4:12 pm

I have a chart with three y axis on the right one on top of another, with no overlap. Each axis has different label widths. The default axis labels are always displayed correctly. My custom axis labels are clipped when they are longer than the default axis labels.

The default right axis automatically moves the chart over to make room to display the labels.

My custom axes do not automatically shrink the chart to make room for the lables. My labels are not displayed because they are clipped at the edge of the window.

I tried fixing this by using tChart1.Panel.MarginRight to reserve some space.

The problem is the default right axis moves in even further than the panel margin, wasting space.

How can I make the chart reserve space for my custom axis labels just like it does for the default ones?

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 Nov 30, 2006 4:28 pm

Hi lt4111,

Knowing this you can try setting a custom axis label for the custom axes or for the default axis:
axis1.Labels.CustomSize = 50;
//or
tChart1.Axes.Left.Labels.CustomSize = 50;
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

Post Reply