[object Promise]

# FocusedFunnelSection API

## Demos

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

- Charts - Funnel

## Import

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

> **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-pro/src/FunnelChart/FocusedFunnelSection.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/FunnelChart/FocusedFunnelSection.tsx)

# FunnelChart API

## Demos

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

- Charts - Export
- Charts - Funnel
- Charts - Pyramid

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| series | `Array<object>` | - | Yes |  |
| apiRef | `{ current?: { exportAsImage: func, exportAsPrint: func } }` | - | No |  |
| axisHighlight | `{ x?: 'band' \| 'line' \| 'none', y?: 'band' \| 'line' \| 'none' }` | - | No |  |
| categoryAxis | `{ categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'band', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'linear', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'log', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'pow', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'sqrt', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'symlog', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'time', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number } \| { categories?: Array<string>, disableLine?: bool, disableTicks?: bool, id?: number \| string, position?: 'bottom' \| 'left' \| 'none' \| 'right' \| 'top', scaleType?: 'utc', size?: 'auto' \| number, tickLabelStyle?: object, tickSize?: number }` | `{ position: 'none' }` | No |  |
| colors | `Array<string> \| func` | `rainbowSurgePalette` | No |  |
| desc | `string` | - | No |  |
| disableAxisListener | `bool` | `false` | No |  |
| disableKeyboardNavigation | `bool` | - | No |  |
| experimentalFeatures | `{ keyboardActivation?: bool }` | - | No |  |
| focusItemOnClick | `bool` | `false` | No |  |
| gap | `number` | `0` | No |  |
| height | `number` | - | No |  |
| hiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'funnel' } \| { dataIndex?: number, seriesId: string, type?: 'funnel' }>` | - | No |  |
| hideLegend | `bool` | `false` | No |  |
| highlightedItem | `{ dataIndex?: number, seriesId: string } \| { dataIndex?: number, seriesId: string, type: 'funnel' }` | - | No |  |
| id | `string` | - | No |  |
| initialHiddenItems | `Array<{ dataIndex?: number, seriesId: string, type: 'funnel' } \| { dataIndex?: number, seriesId: string, type?: 'funnel' }>` | - | No |  |
| loading | `bool` | `false` | No |  |
| localeText | `object` | - | No |  |
| margin | `number \| { bottom?: number, left?: number, right?: number, top?: number }` | - | No |  |
| onAxisClick | `function(event: MouseEvent, data: null \| ChartsAxisData) => void` | - | No |  |
| onHiddenItemsChange | `function(hiddenItems: Array<VisibilityIdentifierWithType>) => void` | - | No |  |
| onHighlightChange | `function(highlightedItem: HighlightItemIdentifierWithType<SeriesType> \| null) => void` | - | No |  |
| onItemClick | `function(event: ChartsActivationEvent<SVGElement>, funnelItemIdentifier: FunnelItemIdentifier) => void` | - | No |  |
| onTooltipItemChange | `function(tooltipItem: SeriesItemIdentifier<SeriesType> \| null) => void` | - | 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: 'funnel' }` | - | 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 `MuiFunnelChart` to change the default props of this component with the theme.

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| axisLabel | `ChartsText` | - | Custom component for axis label. |
| axisLine | `'line'` | - | Custom component for the axis main line. |
| axisTick | `'line'` | - | Custom component for the axis tick. |
| axisTickLabel | `ChartsText` | - | Custom component for tick label. |
| 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. |
| funnelSection | `FunnelSection` | - | Custom component for funnel section. |
| funnelSectionLabel | `FunnelSectionLabel` | - | Custom component for funnel section label. |
| 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. |
| toolbar | `ChartsToolbar` | - | Custom component for the toolbar. |
| tooltip | `ChartsTooltipRoot` | - | Custom component for the tooltip popper. |
| xAxis | `ChartsXAxis` | - | Custom component for the x-axis. |
| yAxis | `ChartsYAxis` | - | Custom component for the y-axis. |

## 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/FunnelChart/FunnelChart.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/FunnelChart/FunnelChart.tsx)

# FunnelPlot API

## Demos

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

- Charts - Funnel
- Charts - Pyramid

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| className | `string` | - | No |  |
| onItemClick | `function(event: ChartsActivationEvent<SVGElement>, funnelItemIdentifier: FunnelItemIdentifier) => void` | - | No |  |
| slotProps | `object` | `{}` | No |  |
| slots | `object` | `{}` | No |  |

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

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

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| funnelSection | `FunnelSection` | - | Custom component for funnel section. |
| funnelSectionLabel | `FunnelSectionLabel` | - | Custom component for funnel section label. |

## 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/FunnelChart/FunnelPlot.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/FunnelChart/FunnelPlot.tsx)