legendTapHandling property

LegendTapHandling legendTapHandling
getter/setter pair

Configures the behavior of the legend when the user taps/clicks on an entry. Defaults to no behavior.

Tapping on a legend entry will update the data visible on the chart. For example, when LegendTapHandling.hide is configured, the series or datum associated with that entry will be removed from the chart. Tapping on that entry a second time will make the data visible again.

Implementation

LegendTapHandling legendTapHandling = LegendTapHandling.hide;