Skip to content

Commit 02689ae

Browse files
committed
remove labelPosition in pie shape
1 parent 26c76f6 commit 02689ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/shape/interval.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class RectShape extends IntervalShape {
304304
rst.add(_drawSectorLabel(
305305
item,
306306
coord.convert(Offset(
307-
(item.shape as RectShape).labelPosition,
307+
0, // For pie chart, the label radius position is controlled by PolarCoord.dimFill, labelPosition will not work.
308308
(position[1].dy + position[0].dy) / 2,
309309
)),
310310
coord,

0 commit comments

Comments
 (0)