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

3 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 31 Oct 2013 Link to this post

    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. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 06 Nov 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 06 Nov 2013 Link to this post

    Worked like a charm.  Thanks!
Back to Top