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

Pie Chart Legend

2 Answers 175 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Himadri Banerjee
Top achievements
Rank 1
Himadri Banerjee asked on 11 Nov 2008, 10:02 AM
I have couple of Pie Charts on my page. The ChartSeries DefaultLabelValue is a percent value. My Chart Size is small and my percentage are kind of overlapping each other.
Originally I had the following line

ChartSeries s0 = RadChart1.Series.GetSeries(0);

 

 

 

             s0.Type = ChartSeriesType.Pie; 
              s0.Appearance.ShowLabels = true;
              s0.DefaultLabelValue = "#%";

I took it out by using the following code

ChartSeries s0 = RadChart1.Series.GetSeries(0);

 

 

s0.DefaultLabelValue =

"";

So it took the percentage out but I want to show it in my legend control
Currently it is showing the ItemLabels.
s0.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;

Is there a way to show the  DefaultLabelValue "#%" in the legend by the ItemLabels.

Please advise.
Thanks
Himadri

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 12 Nov 2008, 04:52 PM
Hello Himadri,

Please, find attached a small example showing this.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Himadri Banerjee
Top achievements
Rank 1
answered on 17 Nov 2008, 10:51 AM
Thank you so much. You guys ROCK!!!!
Tags
Chart (Obsolete)
Asked by
Himadri Banerjee
Top achievements
Rank 1
Answers by
Ves
Telerik team
Himadri Banerjee
Top achievements
Rank 1
Share this question
or