-
-
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
Pie Chart Connector Lines feature #1732
base: main
Are you sure you want to change the base?
Conversation
Hi @amirk3321, I also need this feature on my app. |
centerSpaceRadius = centerSpaceRadius ?? double.infinity, | ||
centerSpaceColor = centerSpaceColor ?? Colors.transparent, | ||
sectionsSpace = sectionsSpace ?? 2, | ||
startDegreeOffset = startDegreeOffset ?? 0, | ||
pieTouchData = pieTouchData ?? PieTouchData(), | ||
titleSunbeamLayout = titleSunbeamLayout ?? false, | ||
super( | ||
borderData: borderData ?? FlBorderData(show: false), | ||
touchData: pieTouchData ?? PieTouchData(), |
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.
You still have some formatting changes. For example here
@@ -112,7 +113,7 @@ class PieChartData extends BaseChartData with EquatableMixin { | |||
pieTouchData: b.pieTouchData, | |||
sectionsSpace: lerpDouble(a.sectionsSpace, b.sectionsSpace, t), | |||
startDegreeOffset: | |||
lerpDouble(a.startDegreeOffset, b.startDegreeOffset, t), | |||
lerpDouble(a.startDegreeOffset, b.startDegreeOffset, t), |
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.
And here
mouseCursorResolver, | ||
longPressDuration, | ||
); | ||
enabled ?? true, |
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.
And here
These changes caused some conflicts in your branch. Please revert all the formatting changes |
Hello,
I added a new feature to
fl_chart
package. Now, developers can useFLConnectorLineSettings
to configure line pointing the value forPieChartSectionData
.Example
PieChartSectionData
to draw connector line pointing the value:The line results:
The
connectorLineSettings
field inPieChartSectionData
is nullable, so simply remove it if you don't want to use it.The suggestions, bugs, or contribution to the enhancements of these lines would be greatly appreciated.
Thanks
Fixes #1731