Unable to set font size of custom labels

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

Unable to set font size of custom labels

Post by amol » Tue Sep 01, 2015 7:20 am

Hi Steema Support

We are using Custom labels in our chart but we are unable to set their font size of axis labels.
We are attaching a demo file for the same.

Please provide any solution asap.

Thanks
PlanoResearch
Attachments
ManageAxis.rar
Demo
(58.29 KiB) Downloaded 665 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Unable to set font size of custom labels

Post by Christopher » Tue Sep 01, 2015 9:48 am

Hello,
amol wrote:We are using Custom labels in our chart but we are unable to set their font size of axis labels.
We are attaching a demo file for the same.
Try:

Code: Select all

      while ((labelvalueBottom) <= tChart1.Axes.Bottom.Maximum)//tChart1.Axes.Bottom.Minimum ++ incr
      {
        AxisLabelItem item = tChart1.Axes.Bottom.Labels.Items.Add(labelvalueBottom, labelvalueBottom.ToString());
        item.Font.Size = 4;
        labelvalueBottom += incrBottom;
      }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply