We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2f9f9f commit 8de70c1Copy full SHA for 8de70c1
lib/src/chart/pie_chart/pie_chart_painter.dart
@@ -454,6 +454,17 @@ class PieChartPainter extends BaseChartPainter<PieChartData> {
454
final section = data.sections[i];
455
final sectionAngle = sectionsAngle[i];
456
457
+ if (sectionAngle == 360) {
458
+ final distance = math.sqrt(math.pow(localPosition.dx - center.dx, 2) +
459
+ math.pow(localPosition.dy - center.dy, 2));
460
+ if (distance >= centerRadius &&
461
+ distance <= section.radius + centerRadius) {
462
+ foundSectionData = section;
463
+ foundSectionDataPosition = i;
464
+ }
465
+ break;
466
467
+
468
final sectionPath = generateSectionPath(
469
section,
470
data.sectionsSpace,
0 commit comments