MarkElement API
Demos
For examples and details on the usage of this React component, visit the component demo pages:
Import
import { MarkElement } from '@mui/x-charts';Component name
The nameMuiMarkElement can be used when providing default props or style overrides in the theme.Props
| Name | Type | Default | Description |
|---|---|---|---|
| dataIndex* | number | The index to the element in the series' data array. | |
| shape* | 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | The shape of the marker. |
The component cannot hold a ref.
CSS
| Rule name | Global class | Description |
|---|---|---|
| root | .MuiMarkElement-root | Styles applied to the root element. |
| highlighted | .MuiMarkElement-highlighted | Styles applied to the root element when higlighted. |
| faded | .MuiMarkElement-faded | Styles applied to the root element when faded. |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverridesproperty in a custom theme.