Manage Labels Size

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Manage Labels Size

Post by amol » Fri Aug 28, 2015 10:46 am

Hi Steema Support,

We are creating chart labels with large data values so in last label(that show Bottom maximum value) its does not show complete value properly as shown in fig. below:
Labels.png
Label
Labels.png (15.86 KiB) Viewed 7589 times
Is there is any way to manage labels size automatically according to labels data.

Thanks in advance.

Thanks
PlanoResearch
Attachments
ManageAxis.rar
Manage Label
(56.68 KiB) Downloaded 772 times

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

Re: Manage Labels Size

Post by Narcís » Fri Aug 28, 2015 11:02 am

Hi PlanoResearch,
amol wrote: Is there is any way to manage labels size automatically according to labels data.
That's what automatic labels do. With custom labels you can add the code below after adding custom labels.

Code: Select all

      tChart1.Panel.MarginUnits = PanelMarginUnits.Pixels;
      tChart1.Panel.MarginRight = tChart1.Axes.Bottom.MaxLabelsWidth();
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

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Manage Labels Size

Post by amol » Fri Aug 28, 2015 12:33 pm

Thanks! Steema Support it works successfully!!!

Post Reply