pyvista.ChartPie.visible#

property ChartPie.visible[source]#

Return or set the chart’s visibility.

Examples

Create a pie chart.

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

Hide it.

>>> chart.visible = False
>>> chart.show()
../../../../_images/pyvista-ChartPie-visible-2_01_00.png