Skip to main content

Interface: ChartScaleConfig

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

Chart scale configuration interface.

Remarksโ€‹

Defines the structure for Chart.js scale configuration objects.

Propertiesโ€‹

display?โ€‹

optional display?: boolean

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

Whether to display the scale


grid?โ€‹

optional grid?: { color?: string; display?: boolean; lineWidth?: number; }

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

Grid line configuration

color?โ€‹

optional color?: string

display?โ€‹

optional display?: boolean

lineWidth?โ€‹

optional lineWidth?: number


max?โ€‹

optional max?: number

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

Maximum value for the scale


min?โ€‹

optional min?: number

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

Minimum value for the scale


position?โ€‹

optional position?: ChartScalePosition

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

Position of the scale


stacked?โ€‹

optional stacked?: boolean

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

Stacking configuration


ticks?โ€‹

optional ticks?: { callback?: (value: number, index: number, values: number[]) => string; color?: string; font?: { family?: string; size?: number; style?: ChartFontStyle; weight?: ChartFontWeight; }; max?: number; min?: number; precision?: number; stepSize?: number; }

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

Ticks configuration

callback?โ€‹

optional callback?: (value: number, index: number, values: number[]) => string

Parametersโ€‹
valueโ€‹

number

indexโ€‹

number

valuesโ€‹

number[]

Returnsโ€‹

string

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

max?โ€‹

optional max?: number

min?โ€‹

optional min?: number

precision?โ€‹

optional precision?: number

stepSize?โ€‹

optional stepSize?: number


title?โ€‹

optional title?: { color?: string; display?: boolean; font?: { family?: string; size?: number; style?: ChartFontStyle; weight?: ChartFontWeight; }; padding?: number; text?: string; }

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

Scale title configuration

color?โ€‹

optional color?: string

display?โ€‹

optional display?: boolean

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

text?โ€‹

optional text?: string


type?โ€‹

optional type?: ChartScaleType

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

Scale type