RadHTMLChart Multiple Pies from one dataset

2 posts, 0 answers
  1. Mike
    Mike avatar
    3 posts
    Member since:
    May 2013

    Posted 19 Jan Link to this post

    I have a dataset of values that I want to have represented in Pie charts, and I would like it if the RadHTMLChart could generate separate pie charts, delimited by the content of one of the data columns.

    Is there any way I can do this with a single RadHTMLChart, or do I need to create separate charts, and manually break the datasets apart, feeding the broken datasets to separate charts?

    I have attached examples of the dataset I'm working with, and the sort of output I'm hoping to achieve with the RadHTMLChart.  In the attached file, column QuestCode delimits the series, and AnswerLabel/Cnt identify the data elements for each pie chart.

    Thank you!

  2. Vessy
    Vessy avatar
    2411 posts

    Posted 22 Jan Link to this post

    Hi Mike,

    The HtmlChart is designed to render only one chart instance as per the passed data values. You can, though, implement your own cycle iterating the column names of the database and assign them to the corresponding data fields of dynamically created charts:


    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top