[object Promise]

# ChartsAxisHighlight API

## Demos

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

- [Charts - Highlighting](/x/react-charts/highlighting/)

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| x | `'band' \| 'line' \| 'none'` | - | No |  |
| y | `'band' \| 'line' \| 'none'` | - | No |  |

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

## CSS

### Rule name

| Global class | Rule name | Description |
|--------------|-----------|-------------|
| - | 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/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx)

# ChartsAxisHighlightValue API

## Demos

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

- [Charts - Highlighting](/x/react-charts/highlighting/)

## Import

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

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| axisDirection | `'x' \| 'y'` | - | Yes |  |
| axisId | `number \| string` | - | No |  |
| labelPosition | `'both' \| 'end' \| 'none' \| 'start'` | `'end'` | No |  |
| value | `Date \| number \| string` | - | No |  |
| valueFormatter | `function(value: number \| Date \| string) => string` | - | 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/src/ChartsAxisHighlightValue/ChartsAxisHighlightValue.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-charts/src/ChartsAxisHighlightValue/ChartsAxisHighlightValue.tsx)