How to change axis label font

Thread is closed for posting
2 posts, 0 answers
  1. wj
    wj avatar
    12 posts
    Member since:
    Sep 2009

    Posted 04 Jan 2010 Link to this post

    Hi,

    I am trying to set the font for my x axis label with this code :

    radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font =

    new System.Drawing.Font("Arial", 20);

    but it is not working.

    I have also tried setting

     

    radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Dimensions.AutoSize =

    false;
    first but it does not work too.

    Any help is greatly appreciated.
    Thanks!!!

    wayne

     

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 07 Jan 2010 Link to this post

    Hi Wayne,

    The code provided will set the font of the axes labels, while for the font of the axis items you can use this code:

    radChart.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = ....
    radChart.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font = ...


    Sincerely,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top