show title on pie chart

2 posts, 0 answers
  1. Mehrdad
    Mehrdad avatar
    17 posts
    Member since:
    Jan 2011

    Posted 17 Aug 2011 Link to this post

    How can I show legend on chart in RadChart?
    I mean insted of showing values on pie ,show the title of that part.
    for example if a pie has 3parts with values 10,20 and 30, it draws based on the values but show title of values instead of values itself
  2. Peshito
    Peshito avatar
    522 posts

    Posted 22 Aug 2011 Link to this post

    Hello Mehrdad,

    You can achieve this by creating new ItemMapping and set its DataPointMember to LegendLabel. You will have to specify a FieldName which points from where the data should be taken.
    Fore example:
    pieSeries.ItemMappings.Add(new ItemMapping("Title", DataPointMember.LegendLabel));
    Fore more details checkout the attached sample project.

    You can also find more about Chart Legends here:

    Best wishes,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Back to Top