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

Questions on Chart legend

3 Answers 50 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 16 Aug 2011, 09:57 AM
Hello Sir,

I have serval series on a chart. By default the legend for one chart shows all legnd items. Business case is such that we do not want the legend item  displayed for the some series. My question is how to hide some Legend item ( Silverlight ) but series still displayed.

Thanks a million.

Chuck

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 19 Aug 2011, 09:54 AM
Hi Chuck,

You can try setting the items for the Legend manually and thus the unnecessary items just won't be added. For more information about  Manual Legend Items generation - take a look at this help topic.

Kind regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Chuck
Top achievements
Rank 1
answered on 19 Aug 2011, 10:41 AM
Hi,

Thank you for your reply. When I set the items for the Legend manually, how do I set the legend item's color the same with the corresponding series's color. What I mean is, the legendItem1's color should be the same with the series1 color.

Many thanks.

Chuck
0
Evgenia
Telerik team
answered on 24 Aug 2011, 01:30 PM
Hi Chuck,

Indeed, RadChart provides the default colors of the Series to the Legend Items when using auto-generated legend items only.  
For your scenario there are two approaches I can suggest you:
1. Use Custom Palette with your own colors, similar to the one shown in our demo. This way the Series and their corresponding Legend Items will have same colors.
2. If you tell us what Theme you are using, we can provide you the default colors for the Series thus you will be able to set them as MarkerFill when adding the legend items manually.

Kind regards,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart
Asked by
Chuck
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Chuck
Top achievements
Rank 1
Share this question
or