apgapg / pie_chart

Flutter Pie chart with animation
https://pub.dev/packages/pie_chart
MIT License
179 stars 85 forks source link

Ring type charts overlaps with neighbouring widget #75

Open Koushikphy opened 2 years ago

Koushikphy commented 2 years ago

It seems for the ChartType.ring, chartRadius is calculated for the inner ring, so for a thick ringStrokeWidth the ring overlaps/overflows to the neighbouring widgets. I think the chartRadius should be calculated for the outer radius of the ring so that it stays withing its space.

apgapg commented 2 years ago

Yes you pointed out correctly.

Shubh-Vyas-ey commented 1 year ago

It seems for the ChartType.ring, chartRadius is calculated for the inner ring, so for a thick ringStrokeWidth the ring overlaps/overflows to the neighbouring widgets. I think the chartRadius should be calculated for the outer radius of the ring so that it stays withing its space.

Did you find any solution