Skip to contentSkip to content

LineHighlightElement API

API reference docs for the React LineHighlightElement component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { LineHighlightElement } from '@mui/x-charts/LineChart';
// or
import { LineHighlightElement } from '@mui/x-charts';
// or
import { LineHighlightElement } from '@mui/x-charts-pro';
// or
import { LineHighlightElement } from '@mui/x-charts-premium';

Learn about the difference by reading this guide on minimizing bundle size.

Props

NameTypeDescription
seriesId*string

The id of the series the element belongs to.

shape*'circle'
| 'cross'
| 'diamond'
| 'square'
| 'star'
| 'triangle'
| 'wye'

The shape of the marker.

The component cannot hold a ref.

Source code

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