How to set font size in xaxis label?

Thread is closed for posting
2 posts, 0 answers
  1. Steve
    Steve avatar
    7 posts
    Member since:
    Dec 2012

    Posted 16 Apr 2013 Link to this post

    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?

  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 19 Apr 2013 Link to this post

    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.
Back to Top