I have a radchart with a dataTable but no legend. I know it is possible to customize items in the chart legend, but is it possible to customize the legend on the radchart dataTable?
2 Answers, 1 is accepted
0
Nikolay
Telerik team
answered on 21 Nov 2012, 07:38 AM
Hello Ryan,
Unfortunately it is not possible to customize the legend items of the RadChart DataTable. Please, excuse us for the inconvenience caused.
Kind regards,
Nikolay
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
There is a way I found to customize the legend, but only for what's displayed. Let's say you have a Data.DataTable that contains Description and Value fields. You can customize the legend by creating another column for the legend where you want to show the Description field if they're all <= 10 characters long and the Value if the Description is > 10 characters.
Then, you can say in your chart RadChart1.Series(0).DataLabelsColumn = "legend" and you're done.
The whole thing is calculated dynamically as run-time.