Skip to main content

Interface: ChartLegendConfig

Defined in: shared/types/chartConfig.ts:235

Chart legend configuration interface.

Remarksโ€‹

Defines the structure for Chart.js legend configuration.

Propertiesโ€‹

display?โ€‹

optional display: boolean

Defined in: shared/types/chartConfig.ts:237

Whether to display the legend


labels?โ€‹

optional labels: { boxHeight?: number; boxWidth?: number; color?: string; font?: { family?: string; size?: number; style?: ChartFontStyle; weight?: ChartFontWeight; }; padding?: number; usePointStyle?: boolean; }

Defined in: shared/types/chartConfig.ts:239

Labels configuration

boxHeight?โ€‹

optional boxHeight: number

boxWidth?โ€‹

optional boxWidth: number

color?โ€‹

optional color: string

font?โ€‹

optional font: { family?: string; size?: number; style?: ChartFontStyle; weight?: ChartFontWeight; }

font.family?โ€‹

optional family: string

font.size?โ€‹

optional size: number

font.style?โ€‹

optional style: ChartFontStyle

font.weight?โ€‹

optional weight: ChartFontWeight

padding?โ€‹

optional padding: number

usePointStyle?โ€‹

optional usePointStyle: boolean


position?โ€‹

optional position: ChartLegendPosition

Defined in: shared/types/chartConfig.ts:253

Legend position