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';Callback fired when a pie item is clicked.
Type:func
Signature:
function(event: React.MouseEvent, pieItemIdentifier: PieItemIdentifier, item: DefaultizedPieValueType) => void - eventThe event source of the callback.
- pieItemIdentifierThe pie item identifier.
- itemThe pie item.
The component cannot hold a ref.