This is a migrated thread and some comments may be shown as answers.

How to set font size in xaxis label?

1 Answer 89 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 16 Apr 2013, 06:33 PM
I cannot seem to find out where this is set.
I am setting some other properties at runtime like such (VB):

 RadChart1.PlotArea.XAxis.Appearance.MajorTick.Length = 4
                RadChart1.PlotArea.XAxis.Appearance.MajorTick.Color = Color.DarkGreen
                RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45
                              RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Calendar Quarter"

Where can I set the font size of the label?

Thanks
Ford

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 19 Apr 2013, 03:17 PM
Hi Ford,

You can specify the font family, size and style of the XAxis labels like this:
RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = New Font("Verdana", 24F, FontStyle.Italic)

Additionally you can set the font color like this: 

RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Red

I hope this helps.

Kind regards,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Steve
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or