Skip to content

Documentation / @ripl/core / scaleLogarithmic

Function: scaleLogarithmic()

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

Defined in: packages/core/src/scales/logarithmic.ts:98

Creates a logarithmic scale that maps a numeric domain to a range using a log transformation.

Parameters

ParameterType
domainnumber[]
rangenumber[]
options?LogarithmicScaleOptions

Returns

Scale<number>