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

Chart legend - Only show legend items for some of series mappings?

2 Answers 47 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 31 Oct 2013, 06:44 PM
I have a chart that has three series mappings as part of it.  I would like to show a legend but only show 2 of the series' legends in the chart.  I don't want to show all 3.  Is this possible?  I've tried to remove the ChartLegendItem from the DefaultView.ChartLegend but it is read-only.

Anyone got a clue?

Tks.

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 06 Nov 2013, 12:35 PM
Hi Brian,

You can control if a series will appear in the legend through the LegendSettings property of the SeriesDefinition e.g.

(mySeriesMapping.SeriesDefinition as LineSeriesDefinition).LegendDisplayMode = LegendDisplayMode.None;


Best regards,
Ves
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Brian
Top achievements
Rank 1
answered on 06 Nov 2013, 07:07 PM
Worked like a charm.  Thanks!
Tags
Chart
Asked by
Brian
Top achievements
Rank 1
Answers by
Ves
Telerik team
Brian
Top achievements
Rank 1
Share this question
or