I was wondering if i can expand the series legend box and have more information in it like the attached picture. I would like to have legend look like what it has for "top 5 spending" is it possible?
1 Answer, 1 is accepted
0
Peshito
Telerik team
answered on 19 Apr 2012, 09:24 AM
Hello Jay,
Expanding the legend like the scenario you have described is not supported out of the box.
In order to display custom count of legend items, you can either set them manually by wiring to the BeforeLayout event like this:
or you can wire the ItemDataBound event of RadChart. In the event handler you can set the Name property of each individual ChartSeriesItem -- this is the value which will appear in the legend. The event arguments will hold references to the ChartSeriesItem, ChartSeries and the underlying data. It would be similar to what's shown in this blog post, but you need to set the Name property and not the Label's text.