This is a migrated thread and some comments may be shown as answers.

RadHTMLChart Multiple Pies from one dataset

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 19 Jan 2021, 10:41 PM

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!

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 22 Jan 2021, 05:26 PM

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:

https://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/server-side-programming/overview#programatic-chart-creation

Regards,
Vessy
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/.

Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or