Legend in Pie Chart

2 posts, 0 answers
  1. Bruno Costa
    Bruno Costa avatar
    9 posts
    Member since:
    May 2010

    Posted 03 Mar 2011 Link to this post

    Hello guys,

    My question is simple: In pie chart, how can I put the correct legend for each piece of chart? For example:
    DataTable:
    Sex        NumPeople
    Man       25
    Female  30

    The image chart is correct, but in legend just shows "Series1". The correct form for legend is:

    Legend
    <Color of chart's pice> Man
    <Color of chart's pice> Female

    How can I do this???

    thank's
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 09 Mar 2011 Link to this post

    Hi Bruno Costa,

    You should use a Legend Display Mode of DataPointLabel. Also, this will require that you map your data to your DataPoint.LegendLabel property.

    Best wishes,
    Vladimir Milev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top