syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.44k stars 672 forks source link

[Feature] Ability to specify gap in DoughnutSeries as well as better border radius handling #1822

Closed btrautmann closed 3 weeks ago

btrautmann commented 4 weeks ago

Use case

I am attempting to reproduce a chart that looks like the following:

Screenshot_2024-04-20_at_3 06 34 PM

Proposal

As it stands, DoughnutSeries does not surface the gap property of a CircularSeries so I don't think the gap is possible.

Furthermore, when specifying cornerStyle: CornerStyle.bothCurve, the end result looks like the following. The smaller sections of the series are no longer the correct shape.

Screenshot 2024-04-20 at 15 10 36

Two features being requested here:

As a bonus, it would be awesome if some of the parameters for circular charts were not typed as Strings (e.g the innerRadius paramter is a String representing a percent but double's (i.e between 0 and 1).

Thank you for the great library, looking forward to these improvements!

PreethikaSelvam commented 3 weeks ago

Hi @btrautmann,

Query 1: Ability to specify gap between sections in DoughnutSeries

We would like to let you know that the gap property is specifically designed for the RadialBarSeries Currently we do not have support to ‘apply gap between the segments in the DoughnutSeries’. However, we have already considered your requirement as a new feature and logged feature request for it in our feedback portal.

Feedback link: Provide support to apply gap for between the segments in the DoughnutSeries

Query 2: Better shape handling when CornerStyle.bothCurve is requested.

We have considered it as an improvement and logged a feature request to ‘improve the rendering of both curved doughnut segments for smaller segments' in our feedback portal.

Feedback link: Improve the rendering of both curved doughnut segments for smaller segments

We will prioritize the features of every release based on demand and priority. So, this both features will be available in any of our upcoming releases. You can also track the status of these features with the feedback links shared above.

Regards, Preethika Selvam.