fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

Add option to enable rounded corners for pie charts

Open himamis opened this issue 4 years ago • 4 comments

Let me know if you find this useful: This adds the option to set the edges of a pie chart rounded.

himamis avatar Mar 13 '22 08:03 himamis

Hi. It makes no sense for me with these values:

roundedCornerDegrees: 40,
roundedCornerRadius: 40,
image

I didn't understand how it works.

imaNNeo avatar Mar 22 '22 14:03 imaNNeo

Screenshot 2022-03-27 at 13 37 45 To achieve this, I pass 10.0 radius to PieChartSectionData The idea was to add rounded corners to the sections themselves. I sometimes get problems with NaN values in the path with this code, which tries to cut out these rounded corners. Do you have any other idea how to approach this?

himamis avatar Mar 27 '22 10:03 himamis

Screenshot 2022-03-27 at 13 37 45 To achieve this, I pass 10.0 radius to PieChartSectionData The idea was to add rounded corners to the sections themselves. I sometimes get problems with NaN values in the path with this code, which tries to cut out these rounded corners. Do you have any other idea how to approach this?

This is not a pie chart. To handle this type of chart, we can use a curved line only. Now we are creating a complicated path that is hard to apply roundness to it.

imaNNeo avatar Mar 27 '22 16:03 imaNNeo

Any progress on this PR?

imaNNeo avatar May 12 '22 18:05 imaNNeo

@imaNNeoFighT is it possible to create such a curved line chart with fl_chart?

Wizzel1 avatar Sep 30 '22 17:09 Wizzel1

@imaNNeo any update on this issue

hieplee2997 avatar Sep 14 '23 08:09 hieplee2997

@imaNNeo any update on this issue

You can follow #1175

imaNNeo avatar Nov 11 '23 17:11 imaNNeo