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

RadChart Title Change Font Size

4 Answers 170 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 17 Feb 2012, 04:42 PM
Hi:
No question.  Just sharing a code snippet.  I decreased the size of the font...

Dim _fontSize As Single = RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font.Size - 2.0F
RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font =
    New System.Drawing.Font( _
        RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font.Name, _
        _fontSize, _
        RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font.Unit)

Phil

4 Answers, 1 is accepted

Sort by
0
Shoba
Top achievements
Rank 1
answered on 17 Feb 2012, 08:16 PM

Hi

I have similar problem. How to add multi line chart title using different fonts?

Thanks,
SAI.

0
Phil
Top achievements
Rank 2
answered on 17 Feb 2012, 09:22 PM
Hi:
That is why I went this route.  When I got it to work the chart looked really bad.
RadChart1.AutoLayout = True
RadChart1.Series.Clear()
RadChart1.ChartTitle.TextBlock.Text = chartTitle
RadChart1.AutoTextWrap = True    '   Caused auto wrap of bottom x labels
RadChart1.ChartTitle.TextBlock.Appearance.AutoTextWrap = Styles.AutoTextWrap.Auto

Phil
0
Petar Marchev
Telerik team
answered on 22 Feb 2012, 11:47 AM
Hello Shobarani,

It is not possible to have more than one font in the title, because a single text block is responsible for it. If you need to have different fonts you will have to add different text blocks manually.

Kind regards,
Petar Marchev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Joan
Top achievements
Rank 1
answered on 04 Mar 2012, 03:44 AM
How do you add extra text blocks?

[EDIT] I figured it out.
Tags
Chart (Obsolete)
Asked by
Phil
Top achievements
Rank 2
Answers by
Shoba
Top achievements
Rank 1
Phil
Top achievements
Rank 2
Petar Marchev
Telerik team
Joan
Top achievements
Rank 1
Share this question
or