This is a migrated thread and some comments may be shown as answers.
Chart Legend Font Size
5 Answers 110 Views
This is a migrated thread and some comments may be shown as answers.
KJF
Top achievements
Rank 2
KJF asked on 10 Sep 2009, 01:05 PM
Newbie to Telerix controls; was wondering if anyone could help me regarding programatically setting the radChart Legend's font size?

Thanks in advance,

Kevin

5 Answers, 1 is accepted

Sort by
0
Accepted
Velin
Telerik team
answered on 14 Sep 2009, 12:22 PM
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.
0
KJF
Top achievements
Rank 2
answered on 16 Sep 2009, 12:28 PM
Thanks for getting back to me. That did the trick.

Kevin
0
Libby Stainer
Top achievements
Rank 1
answered on 26 Jan 2011, 12:37 PM
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);

 

 

 

0
Ves
Telerik team
answered on 28 Jan 2011, 03:28 PM
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.
0
KJF
Top achievements
Rank 2
answered on 28 Jan 2011, 04:08 PM
Unsubscribing...
Asked by
KJF
Top achievements
Rank 2
Answers by
Velin
Telerik team
KJF
Top achievements
Rank 2
Libby Stainer
Top achievements
Rank 1
Ves
Telerik team
Share this question
or