Skip to content

LegendItemParams API

Extended documentation for the LegendItemParams interface with detailed information on the module's properties and available APIs.

Demos

Import

import { LegendItemParams } from '@mui/x-charts-premium'
// or
import { LegendItemParams } from '@mui/x-charts-pro'
// or
import { LegendItemParams } from '@mui/x-charts'

Properties

The color used in the legend

Type:string


The identifier of the legend element.
Used for internal purpose such as key props

Type:number | string


The label displayed in the legend

Type:string


Type:ChartsLabelMarkProps['type']


The maximum value of the category

Type:number | Date | null


The minimum value of the category

Type:number | Date | null


The identifier of the series

Type:SeriesId


Optional

The identifier of the pie item

Type:PieItemId