[object Promise]

# ChartsWrapper API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Radar](/x/react-charts/radar/)
- [Charts - Scatter](/x/react-charts/scatter/)

## Import

```jsx
import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
// or
import { ChartsWrapper } from '@mui/x-charts';
// or
import { ChartsWrapper } from '@mui/x-charts-pro';
// or
import { ChartsWrapper } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| children | `node` | - | Yes |  |
| extendVertically | `bool` | ``false` if the `height` prop is set. And `true` otherwise.` | No |  |
| hideLegend | `bool` | `false` | No |  |
| legendDirection | `'horizontal' \| 'vertical'` | `'horizontal'` | No |  |
| legendPosition | `{ horizontal?: 'center' \| 'end' \| 'start', vertical?: 'bottom' \| 'middle' \| 'top' }` | `{ horizontal: 'center', vertical: 'bottom' }` | No |  |
| sx | `Array<func \| object \| bool> \| func \| object` | - | No | The system prop that allows defining system overrides as well as additional CSS styles. |

> **Note**: The `ref` is forwarded to the root element.

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/ChartsWrapper/ChartsWrapper.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/ChartsWrapper/ChartsWrapper.tsx)

# PieArc API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PieArc } from '@mui/x-charts/PieChart';
// or
import { PieArc } from '@mui/x-charts';
// or
import { PieArc } from '@mui/x-charts-pro';
// or
import { PieArc } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| cornerRadius | `number` | - | Yes |  |
| dataIndex | `number` | - | Yes |  |
| endAngle | `number` | - | Yes |  |
| innerRadius | `number` | - | Yes |  |
| isFaded | `bool` | - | Yes |  |
| isFocused | `bool` | - | Yes |  |
| isHighlighted | `bool` | - | Yes |  |
| outerRadius | `number` | - | Yes |  |
| paddingAngle | `number` | - | Yes |  |
| seriesId | `string` | - | Yes |  |
| startAngle | `number` | - | Yes |  |
| classes | `object` | - | No | Override or extend the styles applied to the component. |
| skipAnimation | `bool` | - | No |  |
| skipInteraction | `bool` | - | No |  |

> **Note**: The `ref` is forwarded to the root element.

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | animate | Styles applied when animation is not skipped. |
| - | arc | Styles applied to an individual pie arc element. |
| - | arcLabel | Styles applied to an individual pie arc label element. |
| - | focusIndicator | Styles applied to the focused pie arc element. |
| - | root | Styles applied to the root element. |
| - | series | Styles applied to the `g` element that contains all pie arcs of a series. |
| - | seriesLabels | Styles applied to the `g` element that contains all pie arc labels of a series. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PieArc.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PieArc.tsx)

# PieArcLabel API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PieArcLabel } from '@mui/x-charts/PieChart';
// or
import { PieArcLabel } from '@mui/x-charts';
// or
import { PieArcLabel } from '@mui/x-charts-pro';
// or
import { PieArcLabel } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| arcLabelRadius | `number` | - | Yes |  |
| color | `string` | - | Yes |  |
| cornerRadius | `number` | - | Yes |  |
| endAngle | `number` | - | Yes |  |
| isFaded | `bool` | - | Yes |  |
| isHighlighted | `bool` | - | Yes |  |
| paddingAngle | `number` | - | Yes |  |
| seriesId | `string` | - | Yes |  |
| skipAnimation | `bool` | - | Yes |  |
| startAngle | `number` | - | Yes |  |
| classes | `object` | - | No | Override or extend the styles applied to the component. |
| formattedArcLabel | `string` | - | No |  |
| hidden | `bool` | - | No |  |

> **Note**: The `ref` is forwarded to the root element.

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | animate | Styles applied when animation is not skipped. |
| - | arc | Styles applied to an individual pie arc element. |
| - | arcLabel | Styles applied to an individual pie arc label element. |
| - | focusIndicator | Styles applied to the focused pie arc element. |
| - | root | Styles applied to the root element. |
| - | series | Styles applied to the `g` element that contains all pie arcs of a series. |
| - | seriesLabels | Styles applied to the `g` element that contains all pie arc labels of a series. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PieArcLabel.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PieArcLabel.tsx)

# PieArcLabelPlot API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PieArcLabelPlot } from '@mui/x-charts/PieChart';
// or
import { PieArcLabelPlot } from '@mui/x-charts';
// or
import { PieArcLabelPlot } from '@mui/x-charts-pro';
// or
import { PieArcLabelPlot } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| data | `Array<{ color: string, endAngle: number, formattedValue: string, hidden: bool, id?: number \| string, index: number, label?: func \| string, labelMarkType?: 'circle' \| 'line' \| 'line+mark' \| 'square' \| func, padAngle: number, startAngle: number, value: number }>` | - | Yes |  |
| outerRadius | `number` | - | Yes |  |
| seriesId | `string` | - | Yes |  |
| arcLabel | `'formattedValue' \| 'label' \| 'value' \| func` | - | No |  |
| arcLabelMinAngle | `number` | `0` | No |  |
| arcLabelRadius | `number` | `(innerRadius - outerRadius) / 2` | No |  |
| cornerRadius | `number` | `0` | No |  |
| faded | `{ additionalRadius?: number, arcLabelRadius?: number, color?: string, cornerRadius?: number, innerRadius?: number, outerRadius?: number, paddingAngle?: number }` | `{ additionalRadius: -5 }` | No |  |
| highlighted | `{ additionalRadius?: number, arcLabelRadius?: number, color?: string, cornerRadius?: number, innerRadius?: number, outerRadius?: number, paddingAngle?: number }` | - | No |  |
| innerRadius | `number` | `0` | No |  |
| paddingAngle | `number` | `0` | No |  |
| skipAnimation | `bool` | `false` | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |

> **Note**: The `ref` is forwarded to the root element.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| pieArcLabel | `PieArcLabel` | - | The component that renders the pie arc labels. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx)

# PieArcPlot API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PieArcPlot } from '@mui/x-charts/PieChart';
// or
import { PieArcPlot } from '@mui/x-charts';
// or
import { PieArcPlot } from '@mui/x-charts-pro';
// or
import { PieArcPlot } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| data | `Array<{ color: string, endAngle: number, formattedValue: string, hidden: bool, id?: number \| string, index: number, label?: func \| string, labelMarkType?: 'circle' \| 'line' \| 'line+mark' \| 'square' \| func, padAngle: number, startAngle: number, value: number }>` | - | Yes |  |
| outerRadius | `number` | - | Yes |  |
| seriesId | `string` | - | Yes |  |
| arcLabelRadius | `number` | `(innerRadius - outerRadius) / 2` | No |  |
| cornerRadius | `number` | `0` | No |  |
| faded | `{ additionalRadius?: number, arcLabelRadius?: number, color?: string, cornerRadius?: number, innerRadius?: number, outerRadius?: number, paddingAngle?: number }` | `{ additionalRadius: -5 }` | No |  |
| highlighted | `{ additionalRadius?: number, arcLabelRadius?: number, color?: string, cornerRadius?: number, innerRadius?: number, outerRadius?: number, paddingAngle?: number }` | - | No |  |
| innerRadius | `number` | `0` | No |  |
| onItemClick | `function(event: ChartsActivationEvent<SVGPathElement>, pieItemIdentifier: PieItemIdentifier, item: DefaultizedPieValueType) => void` | - | No |  |
| paddingAngle | `number` | `0` | No |  |
| skipAnimation | `bool` | `false` | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |

> **Note**: The `ref` is forwarded to the root element.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| pieArc | `PieArc` | - | The component that renders the pie arcs. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PieArcPlot.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PieArcPlot.tsx)

# PieChart API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Label](/x/react-charts/label/)
- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PieChart } from '@mui/x-charts/PieChart';
// or
import { PieChart } from '@mui/x-charts';
// or
import { PieChart } from '@mui/x-charts-pro';
// or
import { PieChart } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| series | `Array<object>` | - | Yes |  |
| apiRef | `{ current?: object }` | - | No |  |
| children | `node` | - | No |  |
| colors | `Array<string> \| func` | `rainbowSurgePalette` | No |  |
| dataset | `Array<object>` | - | No |  |
| desc | `string` | - | No |  |
| disableKeyboardNavigation | `bool` | - | No |  |
| experimentalFeatures | `{ keyboardActivation?: bool }` | - | No |  |
| focusItemOnClick | `bool` | `false` | No |  |
| height | `number` | - | No |  |
| hiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'pie' } \| { dataIndex?: number, seriesId: string, type?: 'pie' }>` | - | No |  |
| hideLegend | `bool` | - | No |  |
| highlightedItem | `{ dataIndex?: number, seriesId: string } \| { dataIndex?: number, seriesId: string, type: 'pie' }` | - | No |  |
| id | `string` | - | No |  |
| initialHiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'pie' } \| { dataIndex?: number, seriesId: string, type?: 'pie' }>` | - | No |  |
| loading | `bool` | `false` | No |  |
| localeText | `object` | - | No |  |
| margin | `number \| { bottom?: number, left?: number, right?: number, top?: number }` | - | No |  |
| onHiddenItemsChange | `function(hiddenItems: Array<VisibilityIdentifierWithType>) => void` | - | No |  |
| onHighlightChange | `function(highlightedItem: HighlightItemIdentifierWithType<SeriesType> \| null) => void` | - | No |  |
| onItemClick | `func` | - | No |  |
| onTooltipItemChange | `function(tooltipItem: SeriesItemIdentifier<SeriesType> \| null) => void` | - | No |  |
| showToolbar | `bool` | `false` | No |  |
| skipAnimation | `bool` | - | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |
| sx | `Array<func \| object \| bool> \| func \| object` | - | No | The system prop that allows defining system overrides as well as additional CSS styles. |
| theme | `'dark' \| 'light'` | - | No |  |
| title | `string` | - | No |  |
| tooltipItem | `{ dataIndex: number, seriesId: string } \| { dataIndex: number, seriesId: string, type: 'pie' }` | - | No |  |
| width | `number` | - | No |  |

> **Note**: The `ref` is forwarded to the root element (HTMLDivElement).

> Any other props supplied will be provided to the root element (native element).

## Theme default props

You can use `MuiPieChart` to change the default props of this component with the theme.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| baseButton | `Button` | - | The component used for buttons. |
| baseIconButton | `IconButton` | - | The component used for icon buttons. |
| baseToggleButton | `ToggleButton` | - | The component used for toggle buttons.
Note: MUI's `ToggleButton` has an incompatible `href` prop, so it must be cast:
`ToggleButton as unknown as React.ComponentType`. |
| baseToggleButtonGroup | `ToggleButtonGroup` | - | The component used for toggle button groups. |
| legend | `ChartsLegend` | - | Custom rendering of the legend. |
| loadingOverlay | `ChartsLoadingOverlay` | - | Overlay component rendered when the chart is in a loading state. |
| noDataOverlay | `ChartsNoDataOverlay` | - | Overlay component rendered when the chart has no data to display. |
| pieArc | `PieArc` | - | The component that renders the pie arcs. |
| pieArcLabel | `PieArcLabel` | - | The component that renders the pie arc labels. |
| toolbar | `ChartsToolbar` | - | Custom component for the toolbar. |
| tooltip | `ChartsTooltipRoot` | - | Custom component for the tooltip popper. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PieChart.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PieChart.tsx)

# PieChartPro API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)

## Import

```jsx
import { PieChartPro } from '@mui/x-charts-pro/PieChartPro';
// or
import { PieChartPro } from '@mui/x-charts-pro';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| series | `Array<object>` | - | Yes |  |
| apiRef | `{ current?: { exportAsImage: func, exportAsPrint: func } }` | - | No |  |
| children | `node` | - | No |  |
| colors | `Array<string> \| func` | `rainbowSurgePalette` | No |  |
| dataset | `Array<object>` | - | No |  |
| desc | `string` | - | No |  |
| disableKeyboardNavigation | `bool` | - | No |  |
| experimentalFeatures | `{ keyboardActivation?: bool }` | - | No |  |
| focusItemOnClick | `bool` | `false` | No |  |
| height | `number` | - | No |  |
| hiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'pie' } \| { dataIndex?: number, seriesId: string, type?: 'pie' }>` | - | No |  |
| hideLegend | `bool` | - | No |  |
| highlightedItem | `{ dataIndex?: number, seriesId: string } \| { dataIndex?: number, seriesId: string, type: 'pie' }` | - | No |  |
| id | `string` | - | No |  |
| initialHiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'pie' } \| { dataIndex?: number, seriesId: string, type?: 'pie' }>` | - | No |  |
| loading | `bool` | `false` | No |  |
| localeText | `object` | - | No |  |
| margin | `number \| { bottom?: number, left?: number, right?: number, top?: number }` | - | No |  |
| onHiddenItemsChange | `function(hiddenItems: Array<VisibilityIdentifierWithType>) => void` | - | No |  |
| onHighlightChange | `function(highlightedItem: HighlightItemIdentifierWithType<SeriesType> \| null) => void` | - | No |  |
| onItemClick | `func` | - | No |  |
| onTooltipItemChange | `function(tooltipItem: SeriesItemIdentifier<SeriesType> \| null) => void` | - | No |  |
| showToolbar | `bool` | `false` | No |  |
| skipAnimation | `bool` | - | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |
| sx | `Array<func \| object \| bool> \| func \| object` | - | No | The system prop that allows defining system overrides as well as additional CSS styles. |
| theme | `'dark' \| 'light'` | - | No |  |
| title | `string` | - | No |  |
| tooltipItem | `{ dataIndex: number, seriesId: string } \| { dataIndex: number, seriesId: string, type: 'pie' }` | - | No |  |
| width | `number` | - | No |  |

> **Note**: The `ref` is forwarded to the root element.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| baseButton | `Button` | - | The component used for buttons. |
| baseDivider | `Divider` | - | The component used for dividers. |
| baseIconButton | `IconButton` | - | The component used for icon buttons. |
| baseMenuItem | `MenuItem` | - | The component used for menu items. |
| baseMenuList | `MenuList` | - | The component used for menu lists. |
| basePopper | `Popper` | - | The component used for poppers. |
| baseToggleButton | `ToggleButton` | - | The component used for toggle buttons.
Note: MUI's `ToggleButton` has an incompatible `href` prop, so it must be cast:
`ToggleButton as unknown as React.ComponentType`. |
| baseToggleButtonGroup | `ToggleButtonGroup` | - | The component used for toggle button groups. |
| baseTooltip | `Tooltip` | - | The component used for tooltips. |
| exportIcon | `ChartsExportIcon` | - | Icon displayed on the toolbar's export button. |
| legend | `ChartsLegend` | - | Custom rendering of the legend. |
| loadingOverlay | `ChartsLoadingOverlay` | - | Overlay component rendered when the chart is in a loading state. |
| noDataOverlay | `ChartsNoDataOverlay` | - | Overlay component rendered when the chart has no data to display. |
| pieArc | `PieArc` | - | The component that renders the pie arcs. |
| pieArcLabel | `PieArcLabel` | - | The component that renders the pie arc labels. |
| toolbar | `ChartsToolbar` | - | Custom component for the toolbar. |
| tooltip | `ChartsTooltipRoot` | - | Custom component for the tooltip popper. |
| zoomInIcon | `ChartsZoomInIcon` | - | Icon displayed on the toolbar's zoom in button. |
| zoomOutIcon | `ChartsZoomOutIcon` | - | Icon displayed on the toolbar's zoom out button. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts-pro/src/PieChartPro/PieChartPro.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/PieChartPro/PieChartPro.tsx)

# PiePlot API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Charts - Pie](/x/react-charts/pie/)
- [Charts - Pie demos](/x/react-charts/pie-demo/)

## Import

```jsx
import { PiePlot } from '@mui/x-charts/PieChart';
// or
import { PiePlot } from '@mui/x-charts';
// or
import { PiePlot } from '@mui/x-charts-pro';
// or
import { PiePlot } from '@mui/x-charts-premium';
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| onItemClick | `function(event: ChartsActivationEvent<SVGPathElement>, pieItemIdentifier: PieItemIdentifier, item: DefaultizedPieValueType) => void` | - | No |  |
| skipAnimation | `bool` | `false` | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |

> **Note**: The `ref` is forwarded to the root element.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| pieArc | `PieArc` | - | The component that renders the pie arcs. |
| pieArcLabel | `PieArcLabel` | - | The component that renders the pie arc labels. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-charts/src/PieChart/PiePlot.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/PieChart/PiePlot.tsx)