Function: getScaleConfigSafe()
getScaleConfigSafe(
config:unknown,axis:"x"|"y"): {config:UnknownRecord|ChartScaleConfig|undefined;exists:boolean; }
Defined in: src/utils/chartUtils.ts:42
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:
UnknownRecord|ChartScaleConfig|undefined
The scale configuration object
existsโ
exists:
boolean
Whether the scale exists