Axes position

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Axes position

Post by rossmc » Tue Dec 01, 2009 11:32 am

Sorry to be a pain, but now I am struggling with the positioning of the right axis.

I really need the position of the axis to remain a constant distance from the side of the chart panel regardless of the label length.

I have tried:
chart.axes.right.automatic = false (this makes little difference in general)
chart.axes.right.labels.autosize = false
chart.axes.right.labels.size.width = 40

I have two charts stacked on top of one another so I really need the right side axes to line up.

Thanks

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

Re: Axes position

Post by Narcís » Tue Dec 01, 2009 2:15 pm

Hi rossmc,

Try using Labels.Customsize for that:

Code: Select all

         tChart1.Axes.Right.Labels.CustomSize = 40;
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

Post Reply