-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
PieChart does not repsonse on touch with only one section #368
Comments
imaNNeo
added a commit
that referenced
this issue
Jun 29, 2020
Oh man, sorry about that, |
It will be fixed in the new version. |
Merged
Check out the 0.10.1 version. |
The same issue occurs when there are multiple sections but only one of them has a non-zero value. |
ezmegy
pushed a commit
to ezmegy/fl_chart
that referenced
this issue
Nov 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
i recently faced an issue with the piechart.
PieChart( PieChartData( sections: _showingSections(data), pieTouchData: PieTouchData(touchCallback: (pieTouchResponse) { setState(() { if (pieTouchResponse != null && pieTouchResponse.touchInput is! FlPanEnd && pieTouchResponse.touchInput is! FlLongPressEnd) { _touchedIndex = pieTouchResponse.touchedSectionIndex; } }); }), borderData: FlBorderData( show: false, ), sectionsSpace: 0, centerSpaceRadius: 40, ), ),
When there is only one section the
pieTouchResponse.touchedSectionIndex
returns null.Shouldn't it just return 0 ?
Thanks in advance
The text was updated successfully, but these errors were encountered: