Interactions

To start listening for interactions on any chart, provide the appropriate [SeriesType]InteractionEvents class to the interactionEvents parameter of any Series.

For example, BarSeries will accept interactionEvents of type BarInteractionEvents.

Look into interaction guides of individual charts to learn more about chart-specific interaction details.

Interaction Events

Every InteractionEvents class supports these types of interaction callbacks.

Enabling and Disabling interactions

Along with the interaction callbacks, every InteractionEvents class has a isEnabled boolean to enable and disable interactions.

BarSeries(
    ...
    interactionEvents: BarInteractionEvents(
          isEnabled: true,
          ...
    ),
);

Interaction Result

Each InteractionEvent callback will receive a Series specific interaction result as an argument.

Look into interaction guides of individual charts to learn more about chart-specific interaction details provided to in the interaction result.

Each interaction result has

TouchInteractionType

TouchInteractionType is an enum with the following values

  • tap

  • tapUp

  • tapDown

  • doubleTap

  • dragStart

  • drag

  • dragEnd

Last updated