Chart Legend Font Size

Thread is closed for posting
6 posts, 1 answers
  1. KJF
    KJF avatar
    5 posts
    Member since:
    Aug 2009

    Posted 10 Sep 2009 Link to this post

    Newbie to Telerix controls; was wondering if anyone could help me regarding programatically setting the radChart Legend's font size?

    Thanks in advance,

    Kevin
  2. Answer
    Velin
    Admin
    Velin avatar
    391 posts

    Posted 14 Sep 2009 Link to this post

    Hi Kevin ,

    Here is a piece of code that should do the job:
    //Make the header visible and change its font size        
     RadChart1.Legend.TextBlock.Text = "Legend"
            RadChart1.Legend.TextBlock.Visible = true
            RadChart1.Legend.TextBlock.Appearance.TextProperties.Font = new Font("Verdana", 22); 
     
    //Change the legend items font size 
            RadChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new Font("Verdana", 20); 


    Regards,
    Velin
    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.
  3. KJF
    KJF avatar
    5 posts
    Member since:
    Aug 2009

    Posted 16 Sep 2009 Link to this post

    Thanks for getting back to me. That did the trick.

    Kevin
  4. Libby Stainer
    Libby Stainer avatar
    8 posts
    Member since:
    Mar 2010

    Posted 26 Jan 2011 Link to this post

    This answer did not work for me. Appearance is not a propery of Legend. Here is my code:

    Legend

     

    legend = new Legend();

     

     

    chart.Legends.Add(legend);

     

     

     

  5. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 28 Jan 2011 Link to this post

    Hello Libby Stainer,

    I am a bit confused here as the API you mention is not actually the RadChart API. Can you confirm you use Telerik RadChart?

    Best regards,
    Ves
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. KJF
    KJF avatar
    5 posts
    Member since:
    Aug 2009

    Posted 28 Jan 2011 Link to this post

    Unsubscribing...
Back to Top