How do I change the font size for axis labels?

4 posts, 0 answers
  1. aedev
    aedev avatar
    7 posts
    Member since:
    Jul 2009

    Posted 01 Feb 2010 Link to this post

    I'm able to change the chart area, title and legend font sizes, but not the axis labels.
  2. Anne Lyon
    Anne Lyon avatar
    90 posts
    Member since:
    Jan 2010

    Posted 02 Feb 2010 Link to this post

    Setting the chart area font size also sets the x and y axis labels for me:

    ctlRadChart.DefaultView.ChartArea.FontSize = 10;

    But I would like to change the font size for the point labels (at run time), which I don't seem to be able to do?

  3. Sia
    Sia avatar
    756 posts

    Posted 03 Feb 2010 Link to this post


    Indeed, you can change the FontSize of the Axes' labels by adding
    ctlRadChart.DefaultView.ChartArea.FontSize = 10;

    Regarding your question about the SeriesItemLabels, you can change their Style by having:
    SeriesItemLabelStyle = Resources["CustomLabelStyle"] as Style
    in your code behind.

    and also having your new style in the UserControl resources:
        <Style TargetType="charting:SeriesItemLabel" x:Key="CustomLabelStyle">
            <Setter Property="FontSize" Value="10" />

    Here you can find more information about this topic:

    Unfortunately RadChart doesn't support changing the FontSize of the SeriesItemLabel in runtime at the moment.  Please accept our apologies. I have logged this issue in our bug tracking system, so our developers will look into it.

    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  4. Yavor
    Yavor avatar
    11 posts

    Posted 02 Sep 2010 Link to this post

    Hi Anne Lyon,

    This is to let you know that we have addressed the issue at hand - the fontsize applied to the chart area is now applied to the chart series labels. The fix will be available as part of the Latest Internal build, which you can download from your account later on next week.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top