toggle

ChartPie.toggle()

Toggle the chart’s visibility.

Examples

Create a pie chart.

>>> import pyvista
>>> chart = pyvista.ChartPie([5, 4, 3, 2, 1])
>>> chart.show()
../../../../_images/pyvista-ChartPie-toggle-1_00_00.png

Hide it.

>>> chart.toggle()
>>> chart.show()
../../../../_images/pyvista-ChartPie-toggle-1_01_00.png