pyvista.Renderer.set_chart_interaction

pyvista.Renderer.set_chart_interaction#

Renderer.set_chart_interaction(interactive, toggle=False)[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 | list[Chart] | list[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 list of charts or indices.

togglebool, default: False

Instead of enabling interaction with the provided chart(s), interaction with the provided chart(s) is toggled. Only applicable when interactive is not a boolean.

Returns:
list of Chart

The list of all interactive charts for this renderer.