[object Promise]

# FocusedSankeyLink API

## Demos

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

- Charts - Sankey

## Import

```jsx
import { FocusedSankeyLink } from '@mui/x-charts-pro/SankeyChart';
// or
import { FocusedSankeyLink } 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/SankeyChart/FocusedSankeyLink.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/FocusedSankeyLink.tsx)

# FocusedSankeyNode API

## Demos

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

- Charts - Sankey

## Import

```jsx
import { FocusedSankeyNode } from '@mui/x-charts-pro/SankeyChart';
// or
import { FocusedSankeyNode } 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/SankeyChart/FocusedSankeyNode.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/FocusedSankeyNode.tsx)

# SankeyChart API

## Demos

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

- Charts - Export
- Charts - Sankey

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| series | `object` | - | Yes |  |
| apiRef | `{ current?: { exportAsImage: func, exportAsPrint: func } }` | - | No |  |
| classes | `object` | - | No | Override or extend the styles applied to the component. |
| colors | `Array<string> \| func` | `rainbowSurgePalette` | No |  |
| desc | `string` | - | No |  |
| disableKeyboardNavigation | `bool` | - | No |  |
| experimentalFeatures | `{ keyboardActivation?: bool }` | - | No |  |
| focusItemOnClick | `bool` | `false` | No |  |
| height | `number` | - | No |  |
| highlightedItem | `{ nodeId: number \| string, seriesId: string, subType: 'node' } \| { nodeId: number \| string, seriesId: string, subType: 'node', type: 'sankey' } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string, type: 'sankey' }` | - | No |  |
| id | `string` | - | No |  |
| loading | `bool` | `false` | No |  |
| localeText | `object` | - | No |  |
| margin | `number \| { bottom?: number, left?: number, right?: number, top?: number }` | - | No |  |
| onHighlightChange | `function(highlightedItem: HighlightItemIdentifierWithType<SeriesType> \| null) => void` | - | No |  |
| onLinkClick | `function(event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void` | - | No |  |
| onNodeClick | `function(event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void` | - | No |  |
| onTooltipItemChange | `function(tooltipItem: SeriesItemIdentifier<SeriesType> \| null) => void` | - | 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 | `{ nodeId: number \| string, seriesId: string, subType: 'node' } \| { nodeId: number \| string, seriesId: string, subType: 'node', type: 'sankey' } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string, type: 'sankey' }` | - | 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. |
| 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. |
| 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. |

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | link | Styles applied to an individual link element. |
| - | linkLabel | Styles applied to an individual link label element. |
| - | linkLabels | Styles applied to the link label container. |
| - | links | Styles applied to the links container. |
| - | node | Styles applied to an individual node element. |
| - | nodeLabel | Styles applied to an individual node label element. |
| - | nodeLabels | Styles applied to the node label container. |
| - | nodes | Styles applied to the nodes container. |
| - | root | Styles applied 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/SankeyChart/SankeyChart.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/SankeyChart.tsx)

# SankeyDataProvider API

## Demos

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

- Charts - Sankey

## Import

```jsx
import { SankeyDataProvider } from '@mui/x-charts-pro/SankeyChart';
// or
import { SankeyDataProvider } 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 |  |
| desc | `string` | - | No |  |
| disableKeyboardNavigation | `bool` | - | No |  |
| experimentalFeatures | `{ keyboardActivation?: bool }` | - | No |  |
| focusItemOnClick | `bool` | `false` | No |  |
| height | `number` | - | No |  |
| highlightedItem | `{ nodeId: number \| string, seriesId: string, subType: 'node' } \| { nodeId: number \| string, seriesId: string, subType: 'node', type: 'sankey' } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string, type: 'sankey' }` | - | No |  |
| id | `string` | - | No |  |
| localeText | `object` | - | No |  |
| margin | `number \| { bottom?: number, left?: number, right?: number, top?: number }` | - | No |  |
| onHighlightChange | `function(highlightedItem: HighlightItemIdentifierWithType<SeriesType> \| null) => void` | - | No |  |
| onTooltipItemChange | `function(tooltipItem: SeriesItemIdentifier<SeriesType> \| null) => void` | - | No |  |
| seriesConfig | `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 | `{ nodeId: number \| string, seriesId: string, subType: 'node' } \| { nodeId: number \| string, seriesId: string, subType: 'node', type: 'sankey' } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string } \| { seriesId: string, sourceId: number \| string, subType: 'link', targetId: number \| string, type: 'sankey' }` | - | No |  |
| width | `number` | - | No |  |

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

# SankeyPlot API

## Demos

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

- Charts - Sankey

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| classes | `object` | - | No | Override or extend the styles applied to the component. |
| className | `string` | - | No |  |
| onLinkClick | `function(event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void` | - | No |  |
| onNodeClick | `function(event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void` | - | No |  |

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

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

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | link | Styles applied to an individual link element. |
| - | linkLabel | Styles applied to an individual link label element. |
| - | linkLabels | Styles applied to the link label container. |
| - | links | Styles applied to the links container. |
| - | node | Styles applied to an individual node element. |
| - | nodeLabel | Styles applied to an individual node label element. |
| - | nodeLabels | Styles applied to the node label container. |
| - | nodes | Styles applied to the nodes container. |
| - | root | Styles applied 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/SankeyChart/SankeyPlot.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/SankeyPlot.tsx)

# SankeyTooltip API

## Demos

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

- Charts - Sankey

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| anchor | `'chart' \| 'node' \| 'pointer'` | `'pointer'` | No |  |
| anchorEl | `(props, propName) => { if (props[propName] == null) { return new Error(`Prop '${propName}' is required but wasn't specified`); } if (typeof props[propName] !== 'object' \|  \| props[propName].nodeType !== 1) { return new Error(`Expected prop '${propName}' to be of type Element`); } return null; } \| func \| { contextElement?: (props, propName) => { if (props[propName] == null) { return null; } if (typeof props[propName] !== 'object' \|  \| props[propName].nodeType !== 1) { return new Error(`Expected prop '${propName}' to be of type Element`); } return null; }, getBoundingClientRect: func }` | - | No |  |
| classes | `object` | - | No | Override or extend the styles applied to the component. |
| component | `elementType` | - | No |  |
| container | `(props, propName) => { if (props[propName] == null) { return new Error(`Prop '${propName}' is required but wasn't specified`); } if (typeof props[propName] !== 'object' \|  \| props[propName].nodeType !== 1) { return new Error(`Expected prop '${propName}' to be of type Element`); } return null; } \| func` | - | No |  |
| disablePortal | `bool` | `false` | No |  |
| keepMounted | `bool` | `false` | No |  |
| modifiers | `Array<{ data?: object, effect?: func, enabled?: bool, fn?: func, name?: any, options?: object, phase?: 'afterMain' \| 'afterRead' \| 'afterWrite' \| 'beforeMain' \| 'beforeRead' \| 'beforeWrite' \| 'main' \| 'read' \| 'write', requires?: Array<string>, requiresIfExists?: Array<string> }>` | - | No |  |
| open | `bool` | - | No |  |
| placement | `'auto-end' \| 'auto-start' \| 'auto' \| 'bottom-end' \| 'bottom-start' \| 'bottom' \| 'left-end' \| 'left-start' \| 'left' \| 'right-end' \| 'right-start' \| 'right' \| 'top-end' \| 'top-start' \| 'top'` | `'bottom'` | No |  |
| popperOptions | `{ modifiers?: array, onFirstUpdate?: func, placement?: 'auto-end' \| 'auto-start' \| 'auto' \| 'bottom-end' \| 'bottom-start' \| 'bottom' \| 'left-end' \| 'left-start' \| 'left' \| 'right-end' \| 'right-start' \| 'right' \| 'top-end' \| 'top-start' \| 'top', strategy?: 'absolute' \| 'fixed' }` | `{}` | No |  |
| popperRef | `func \| { current?: { destroy: func, forceUpdate: func, setOptions: func, state: { attributes: object, elements: object, modifiersData: object, options: object, orderedModifiers: Array<object>, placement: 'auto-end' \| 'auto-start' \| 'auto' \| 'bottom-end' \| 'bottom-start' \| 'bottom' \| 'left-end' \| 'left-start' \| 'left' \| 'right-end' \| 'right-start' \| 'right' \| 'top-end' \| 'top-start' \| 'top', rects: object, reset: bool, scrollParents: object, strategy: 'absolute' \| 'fixed', styles: object }, update: func } }` | - | No |  |
| position | `'bottom' \| 'left' \| 'right' \| 'top'` | - | 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. |
| transition | `bool` | `false` | No |  |
| trigger | `'item' \| 'none'` | `'item'` | No |  |

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

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| tooltip | `ChartsTooltipRoot` | - | Custom component for the tooltip popper. |

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | axisValueCell | Styles applied to the axisValueCell element. Only available for axis tooltip. |
| - | cell | Styles applied to the cell element. |
| - | labelCell | Styles applied to the labelCell element. |
| - | mark | Styles applied to the mark element. |
| - | markContainer | Styles applied to the markContainer element. |
| - | paper | Styles applied to the paper element. |
| - | root | Styles applied to the root element. |
| - | row | Styles applied to the row element. |
| - | table | Styles applied to the table element. |
| - | valueCell | Styles applied to the valueCell 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/SankeyChart/SankeyTooltip/SankeyTooltip.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/SankeyTooltip/SankeyTooltip.tsx)

# SankeyTooltipContent API

## Demos

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

- Charts - Sankey

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| classes | `object` | - | No | Override or extend the styles applied to the component. |

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

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | axisValueCell | Styles applied to the axisValueCell element. Only available for axis tooltip. |
| - | cell | Styles applied to the cell element. |
| - | labelCell | Styles applied to the labelCell element. |
| - | mark | Styles applied to the mark element. |
| - | markContainer | Styles applied to the markContainer element. |
| - | paper | Styles applied to the paper element. |
| - | root | Styles applied to the root element. |
| - | row | Styles applied to the row element. |
| - | table | Styles applied to the table element. |
| - | valueCell | Styles applied to the valueCell 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/SankeyChart/SankeyTooltip/SankeyTooltipContent.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts-pro/src/SankeyChart/SankeyTooltip/SankeyTooltipContent.tsx)