Skip to main content

Function: getNestedScaleProperty()

getNestedScaleProperty(config: unknown, axis: "x" | "y", path: string): unknown

Defined in: src/utils/chartUtils.ts:168

Safely get nested property from scale configuration.

Parametersโ€‹

configโ€‹

unknown

Chart configuration.

axisโ€‹

Axis name ("x" or "y").

"x" | "y"

pathโ€‹

string

Property path (e.g., "title.text").

Returnsโ€‹

unknown

Property value or undefined when unavailable.