Skip to main content

Function: getScaleProperty()

getScaleProperty(config: unknown, axis: "x" | "y", property: string): unknown

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

Safely get a property from a scale configuration.

Parametersโ€‹

configโ€‹

unknown

Chart configuration

axisโ€‹

Axis name ("x" or "y")

"x" | "y"

propertyโ€‹

string

Property name to access

Returnsโ€‹

unknown

Property value or undefined