Example of RadPieChart with series provider for multiple DoughnutSeries?

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

    Posted 12 Oct 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
    Admin
    Martin avatar
    1101 posts

    Posted 13 Oct 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.

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top