-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add capStyle for Pie Charts #1832
base: main
Are you sure you want to change the base?
Conversation
@@ -107,6 +118,7 @@ class PieChartData extends BaseChartData with EquatableMixin { | |||
b.centerSpaceRadius, | |||
t, | |||
), | |||
capStyle: capStyle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be capStyle: b.capStyle,
@@ -401,3 +414,9 @@ class PieChartDataTween extends Tween<PieChartData> { | |||
@override | |||
PieChartData lerp(double t) => begin!.lerp(begin!, end!, t); | |||
} | |||
|
|||
enum CapStyle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write a documentation above it. And it seems it is specially for PieChart. So I think it makes sense to add Pie
prefix for it.
It feels weird in our PieChartSample 2. CleanShot.2025-01-06.at.21.21.58.mp4 |
Also you need to update the unit-tests and add new ones for your feature. |
@imaNNeo will do once I get the chance. Thanks! |
Enhances Pie Charts that have non-null & non-zero
centerSpaceRadius
. Fixes this issue: #1699Based on this PR #1698