SeriesLegend
Name: Series Legend
Description: Legend used for Series data type (corresponds to
seriesLabels)
params$
Type:
Partial<SeriesLegendParams>Fields:
Name Description Type placement Placement position Placementpadding Outer padding numberbackgroundFill Background color type ColorTypebackgroundStroke Border color type ColorTypegap Legend gap distance numberlistRectWidth List icon width numberlistRectHeight List icon height numberlistRectRadius List icon border radius numbertextColorType Text color type ColorType
Detailed Types
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'
- Default values:
{
placement: 'right-end',
padding: 28,
backgroundFill: 'none',
backgroundStroke: 'none',
gap: 10,
listRectWidth: 14,
listRectHeight: 14,
listRectRadius: 0,
textColorType: 'primary'
}