Skip to content

Documentation / @ripl/core / scalePower

Function: scalePower() ​

scalePower(domain, range, options?): Scale<number>

Defined in: packages/core/src/scales/power.ts:92

Creates a power scale that maps a numeric domain to a range using an exponential transformation.

Parameters ​

ParameterType
domainnumber[]
rangenumber[]
options?PowerScaleOptions

Returns ​

Scale<number>