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