In my Chart I have around 16-20 Legends and they are taking very much space. I want to show only top 8 Legends and hide the rest. How can I do it? A code sample would be appreciated. Thanks.
1 Answer, 1 is accepted
0
Missing User
answered on 11 Jan 2013, 04:50 PM
Hello Archana,
You can access individual legend items by using the RadChart's Chart.Legend.Items collection. E.g:
will hide the very first legend item. This can be done after the appropriate event has fired, such as BeforeLayout.
All the best,
Ivan N.
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.