Skip to content

PiePlot API

API reference docs for the React PiePlot component. Learn about the props, CSS, and other APIs of this exported module.

Component demos

Import

import { PiePlot } from '@mui/x-charts/PieChart';
// or
import { PiePlot } from '@mui/x-charts';
Learn about the difference by reading this guide on minimizing bundle size.

Props

onClick

Callback fired when a pie item is clicked.

Type:func

Signature:
function(event: React.MouseEvent, pieItemIdentifier: PieItemIdentifier, item: DefaultizedPieValueType) => void
  • event The event source of the callback.
  • pieItemIdentifier The pie item identifier.
  • item The pie item.

skipAnimation

If true, animations are skiped.

Type:bool

Default:false


slotProps

The props used for each component slot.

Type:object

Default:{}


slots

Overridable component slots.

Type:object

Default:{}


The component cannot hold a ref.

Slots

pieArc

pieArcLabel