How can we add a table legend above the Pie Chart along with the color, percentage name etc ..
1 Answer, 1 is accepted
0
Danail Vasilev
Telerik team
answered on 03 Feb 2014, 02:24 PM
Hello Wael,
If you want to display a standard legend above the pie chart you must set the following properties:
ChartSeries.Appearance-LegendDisplayMode in order to declare where the legend items will be obtained. For example if you set it to ItemLabels, data will be obtained from the Name property of each series item.
Legend.Appearance Position-AlignedPosition in order to align the legend. For example by setting it to "Top" the legend will be aligned above the chart.
As for the percentage display of the labels you can set the DefaultLabelValue property of the series to "#%". More information on the matter is available in DefaultLabelValue article.
Regards,
Danail Vasilev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.