pyvista.ChartPie.active_background_color#

property ChartPie.active_background_color[source]#

Return or set the chart’s background color in interactive mode.

Examples

Create a pie chart with a green background.

>>> import pyvista as pv
>>> chart = pv.ChartPie([5, 4, 3, 2, 1])
>>> chart.background_color = (0.5, 0.9, 0.5)
>>> chart.show(interactive=False)
../../../../_images/pyvista-ChartPie-active_background_color-2_00_00.png

Set the active background color to blue and activate the chart.

>>> chart.active_background_color = 'b'
>>> chart.show(interactive=True)
../../../../_images/pyvista-ChartPie-active_background_color-2_01_00.png