Renderer.set_chart_interaction

Renderer.set_chart_interaction#

Renderer.set_chart_interaction(
interactive: bool | Chart | int | Sequence[Chart] | Sequence[int],
*,
toggle: bool = False,
) → list[Chart][source]#

Set or toggle interaction with charts for this renderer.

Interaction with other charts in this renderer is disabled when toggle is False.

Parameters:
interactivebool | Chart | int | sequence[Chart] | sequence[int]

Following parameter values are accepted:

  • A boolean to enable (True) or disable (False) interaction with all charts.

  • The chart or its index to enable interaction with. Interaction with multiple charts can be enabled by passing a sequence of charts or indices.

togglebool, default: False

Instead of enabling interaction with the provided charts, interaction with the provided charts is toggled. Only applicable when interactive is not a boolean.

Returns:
list[Chart]

The list of all interactive charts for this renderer.