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

Example of RadPieChart with series provider for multiple DoughnutSeries?

1 Answer 245 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 12 Oct 2016, 10:27 PM

Looking for a way to dynamically populate multiple doughnut series so that I can make my "ring" chart that I made with the winforms version.

I've looked at the "Dynamic Number of Series (ChartSeriesProvider)" article. There doesn't seem to be a "PieSeriesDescriptor", and using the "ChartSeriesDescriptor" that is for "all series", it complains about "<telerik:ChartSeriesDescriptor " with the errors:

    The type "ChartSeriesDescriptor" is abstract and must include an explicit value

    Type 'ChartSeriesDescriptor' is not usable as an object element because it is not public or does not define a public parameterless constructor or a type converter.



1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 13 Oct 2016, 11:03 AM
Hello Steve,

Since Q1 2016 the ChartSeriesDescriptor class is not longer abstract and can be directly used to describe any of the chart's series. You can find more information about this in the ChartSeriesProvider help article.

Before that it wasn't possible to use the series provider with a pie chart unless you implement custom descriptor that derives from ChartSeriesDescriptor and override its CreateInstanceCore() method.

Additionally, I attached a small example demonstrating  multiple doughnut series using ChartSeriesProvider.

Regards,
Martin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or