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

How to change axis label font

1 Answer 166 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
wj
Top achievements
Rank 1
wj asked on 04 Jan 2010, 10:30 PM
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

 

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 07 Jan 2010, 08:33 AM
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.
Tags
Chart (Obsolete)
Asked by
wj
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or