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

How to change the font size and style for pie chart series item labels

1 Answer 498 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Leela Yarlagadda
Top achievements
Rank 1
Leela Yarlagadda asked on 18 Nov 2010, 05:31 PM
Hi,

I am using the AJAX RadChart, and because of the small pie slices the labels are being overlapped. 
1. How do I change the series item label style to smaller font and different font family and color.
2. When I am setting IntelligentLabelsEnabled=true, the labels are going off of the plot area, only part of the label is being visible. How to avoid labels going off of the plot area.

Thanks
Leela

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 22 Nov 2010, 06:00 PM
Hi Leela,

1. To be able to change the Font properties and the Color of the Text in Pie Chart you should use the smart tag as shown in our help topic - http://www.telerik.com/help/aspnet-ajax/gettingstartedstaticdata.html (Populate Chart Data) and when you click the ellipses for the Chart Series Collection you will see all the properties relating them. To be able to find the Color and Font properties take a look at the picture attached.

2. You can make labels appear inside PlotArea by changing their FontSize as mentioned above and you can change the DiameterScale property of the Pie with appropriate value between 0 and 1 like this:
RadChart1.Series[0].Appearance.DiameterScale = 0.6;

Sincerely yours,
Evgenia
the Telerik team
Browse the vast support resources we have to jumpstart 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.
Tags
Chart (Obsolete)
Asked by
Leela Yarlagadda
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or