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

How do I change the font size for axis labels?

3 Answers 760 Views
Chart
This is a migrated thread and some comments may be shown as answers.
aedev
Top achievements
Rank 1
aedev asked on 01 Feb 2010, 02:49 PM
I'm able to change the chart area, title and legend font sizes, but not the axis labels.

3 Answers, 1 is accepted

Sort by
0
Anne Lyon
Top achievements
Rank 1
answered on 02 Feb 2010, 10:48 AM
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?

0
Sia
Telerik team
answered on 03 Feb 2010, 03:52 PM
Hello,

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:
<UserControl.Resources>
    <Style TargetType="charting:SeriesItemLabel" x:Key="CustomLabelStyle">
        <Setter Property="FontSize" Value="10" />
     </Style>
</UserControl.Resources>

Here you can find more information about this topic: 
http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-item-labels.html

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.

Greetings,
Sia
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.
0
Yavor
Telerik team
answered on 02 Sep 2010, 10:51 AM
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,
Yavor
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
Tags
Chart
Asked by
aedev
Top achievements
Rank 1
Answers by
Anne Lyon
Top achievements
Rank 1
Sia
Telerik team
Yavor
Telerik team
Share this question
or