You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
The current charts have legends that allow items to be toggled on/off on a legend item tap/click.
Can a log tap and double click be implemented to toggle all of the other items rather than the item tapped?
So, for a legend with items A B C and D, they are all displayed by default. If I tap A then A is no longer shown.
If instead long tap A, then B C and D should be turned off.
Any hints or thoughts. Thanks!
The text was updated successfully, but these errors were encountered:
zheyxu
changed the title
LongTap effect on legends
LongTap/doubletap effect on legends
Apr 27, 2022
You can custom your own legends using Flutter widget such as Text button. It's not necessary to use charts_flutter's build in legends. A custom legends could do the same things as charts_flutter's build in legends could do and more than that. If you need the TextButton to act double tap behavior, you could wrap it with GestureDetector widget.
Thanks yuenzp! Does it mean I still use charts_flutter and I add some custom widgets. That is good solution. Is there any example code? I'd appreciate any examples.
The current charts have legends that allow items to be toggled on/off on a legend item tap/click.
Can a log tap and double click be implemented to toggle all of the other items rather than the item tapped?
So, for a legend with items A B C and D, they are all displayed by default. If I tap A then A is no longer shown.
If instead long tap A, then B C and D should be turned off.
Any hints or thoughts. Thanks!
The text was updated successfully, but these errors were encountered: