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 as pv
>>> chart = pv.ChartPie([1, 2, 3])
>>> chart.plot.data
pyvista_ndarray([1, 2, 3])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/f14dcc6d148191f74ad77a50ad7353ade7dc6b3e/a50e3/_images/pyvista-plotting-charts-pieplot-data-2_00_00.png