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';
// or
import { LegendItemParams } from '@mui/x-charts-pro';
// or
import { LegendItemParams } from '@mui/x-charts-premium';

Properties

The color used in the legend

Type:string


The label displayed in the legend

Type:string


Type:'circle' | 'line' | 'line+mark' | 'square' | ComponentClass<ChartsLabelCustomMarkProps, any> | FunctionComponent<ChartsLabelCustomMarkProps>


The maximum value of the category

Type:Date | number


The minimum value of the category

Type:Date | number


The identifier of the series

Type:string


The type of the series

Type:'bar' | 'funnel' | 'heatmap' | 'line' | 'ohlc' | 'pie' | 'radar' | 'rangeBar' | 'sankey' | 'scatter'


Optional

The data index of the item in the series data array

Type:number