Function: getScaleConfigSafe()
getScaleConfigSafe(
config
:unknown
,axis
:"x"
|"y"
): {config
:undefined
|Record
<string
,unknown
> |ChartScaleConfig
;exists
:boolean
; }
Defined in: src/utils/chartUtils.ts:45
Enhanced scale configuration access with existence tracking.
Parametersโ
configโ
unknown
Chart configuration
axisโ
Axis name ("x" or "y")
"x"
| "y"
Returnsโ
Scale configuration result with existence information
configโ
config:
undefined
|Record
<string
,unknown
> |ChartScaleConfig
The scale configuration object
existsโ
exists:
boolean
Whether the scale exists