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

Changing XAxes columns font

4 Answers 75 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saman
Top achievements
Rank 1
Saman asked on 12 Jul 2012, 09:32 PM
Hi every one

I want to change XAxes Columns Font,i mean the numbers.
I use this code,but it's not worked

radchart1.Font = new System.Drawing.Font("B Nazanin", 12, FontStyle.Bold);
How can i do that?

Best Regards ...

4 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 17 Jul 2012, 10:00 AM
Hello Saman,

Here's how you can achieve this:

<telerik:RadChart ID="RadChart1" runat="server">
            <PlotArea>
                <XAxis>
                    <Appearance>
                        <TextAppearance TextProperties-Font="Lucida Calligraphy, 9pt">
                        </TextAppearance>
                    </Appearance>
                </XAxis>
            </PlotArea>
        </telerik:RadChart>

Regards,
Evgenia
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Saman
Top achievements
Rank 1
answered on 17 Jul 2012, 10:20 AM
Hello Evgenia

Thanks for your reply
First of all,i use C# winforms telerik component,not ASP.NET ...
and i have this code below :
radchart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("B Nazanin", 12);

but this code , only change the Xaxis Column font,i want to change each column in chart i have ...
Regards ...
Saman
0
Evgenia
Telerik team
answered on 19 Jul 2012, 08:14 AM
Hi,

 From your last post I guess you want to change the Series Items Labels Font. Here's how this can be done:

RadChart1.Series[0].Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("B Nazanin", 12);


Kind regards,

Evgenia
the Telerik team

 

RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Saman
Top achievements
Rank 1
answered on 20 Jul 2012, 02:54 PM
Hi ,
Yes,i mean this,it worked thank you.
Regards.
Saman.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Saman
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Saman
Top achievements
Rank 1
Share this question
or