property ChartPie.loc[source]#

Return or set the chart position in normalized coordinates.

This denotes the location of the chart’s bottom left corner.


Customisable ChartPie geometry is only supported in VTK v9.2 or newer. For older VTK versions, the location cannot be modified, filling up the entire viewport by default.


Create a half-sized pie chart centered in the middle of the renderer.

>>> import pyvista as pv
>>> chart = pv.ChartPie([5, 4, 3, 2, 1])
>>> chart.size = (0.5, 0.5)
>>> chart.loc = (0.25, 0.25)