Pie chart, legend with item + value>

Thread is closed for posting
2 posts, 0 answers
  1. Thye
    Thye avatar
    5 posts
    Member since:
    Oct 2012

    Posted 17 Dec 2012 Link to this post


    Currently I'm using a Chart, type pie. I've a legend next to the pie, to define the colors in the pie. Next to the chart, there is a DataList, which shows the corresponding data value per item. 

    I was wondering, if it were possible, to show the item name AND the item value in the legend. Then I can delete my DataList, and the design will be much better.

    Is that possible?

  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 20 Dec 2012 Link to this post

    Hi Thye,

    You can use the BeforeLayout event of the RadChart to change the Legend Item Labels. I have attached an example solution and a screenshot of the end result.

    I hope this helps.

    Kind regards,
    Petar Kirov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top