labels

property PiePlot.labels

Return or set the this plot’s labels, as shown in the chart’s legend.

Examples

Create a pie plot.

>>> import pyvista
>>> chart = pyvista.ChartPie([4, 3, 2, 1])
>>> plot = chart.plot
>>> chart.show()
../../../../_images/pyvista-plotting-charts-PiePlot-labels-1_00_00.png

Modify the labels.

>>> plot.labels = ["A", "B", "C", "D"]
>>> chart.show()
../../../../_images/pyvista-plotting-charts-PiePlot-labels-1_01_00.png