Interface: ChartScaleConfig
Defined in: shared/types/chartConfig.ts:281
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:283
Whether to display the scale
grid?โ
optional
grid: {color?
:string
;display?
:boolean
;lineWidth?
:number
; }
Defined in: shared/types/chartConfig.ts:285
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:291
Maximum value for the scale
min?โ
optional
min:number
Defined in: shared/types/chartConfig.ts:293
Minimum value for the scale
position?โ
optional
position:ChartScalePosition
Defined in: shared/types/chartConfig.ts:295
Position of the scale
stacked?โ
optional
stacked:boolean
Defined in: shared/types/chartConfig.ts:297
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:299
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:314
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:327
Scale type