Skip to content

Documentation / @ripl/core / getLinearScaleMethod

Function: getLinearScaleMethod()

getLinearScaleMethod(domain, range, options?): ScaleMethod

Defined in: packages/core/src/scales/_base/index.ts:114

Creates a linear mapping function from a numeric domain to a numeric range, with optional clamping and tick-padding.

Parameters

ParameterType
domainnumber[]
rangenumber[]
options?LinearScaleOptions

Returns

ScaleMethod