RadChart Title Change Font Size

Thread is closed for posting
5 posts, 0 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 17 Feb 2012 Link to this post

    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
  2. Shoba
    Shoba avatar
    5 posts
    Member since:
    Feb 2012

    Posted 17 Feb 2012 Link to this post

    Hi

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

    Thanks,
    SAI.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 17 Feb 2012 Link to this post

    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
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 22 Feb 2012 Link to this post

    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 >>
  6. Joan
    Joan avatar
    44 posts
    Member since:
    Dec 2011

    Posted 03 Mar 2012 Link to this post

    How do you add extra text blocks?

    [EDIT] I figured it out.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017