How to change *only* legend names while preserving the default coloring scheme?

3 posts, 1 answers
  1. Przemyslaw
    Przemyslaw avatar
    21 posts
    Member since:
    Oct 2007

    Posted 21 Jul 2010 Link to this post

    Hi,

    I display a number of series. I want to override the legend names and preserve the default coloring. When I set the UseAutoGeneratedItems to False and add ChartLegendItems then the colors for my series stop matching the colors in the legend. How to programatically change the legend names and only legend names?

    Przemek
  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 21 Jul 2010 Link to this post

    Hello Przemyslaw,

    You can set the desired legend label for each series via the respective DataSeries.LegendLabel property (if you are building your series manually) or via the respective SeriesMapping.LegendLabel property (if you are using the chart databinding feature).

    Hope this helps.


    All the best,
    Freddie
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Przemyslaw
    Przemyslaw avatar
    21 posts
    Member since:
    Oct 2007

    Posted 22 Jul 2010 Link to this post

    Hi Freddie,

    thanks, of course this works now.

    best regards, Przemek
Back to Top