Example of RadPieChart with series provider for multiple DoughnutSeries?

2 posts, 0 answers
  1. Steve
    Steve avatar
    46 posts
    Member since:
    May 2014

    Posted 12 Oct 2016 Link to this post

    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.

  2. Martin Ivanov
    Martin Ivanov avatar
    1408 posts

    Posted 13 Oct 2016 Link to this post

    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.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top