pyvista.plotting.charts.PiePlot.data#

property PiePlot.data[source]#

Retrieve the sizes of the drawn segments.

Examples

Create a pie plot and display the sizes.

>>> import pyvista
>>> chart = pyvista.ChartPie([1, 2, 3])
>>> chart.plot.data
pyvista_ndarray([1, 2, 3])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/f14dcc6d148191f74ad77a50ad7353ade7dc6b3e/16772/_images/pyvista-plotting-charts-pieplot-data-1_00_00.png