Skip to content

Documentation / @ripl/core / scaleQuantile

Function: scaleQuantile() ​

scaleQuantile<TRange>(domain, range): Scale<number, TRange>

Defined in: packages/core/src/scales/quantile.ts:15

Creates a quantile scale that divides a sorted numeric domain into quantiles mapped to discrete range values.

Type Parameters ​

Type Parameter
TRange

Parameters ​

ParameterType
domainnumber[]
rangeTRange[]

Returns ​

Scale<number, TRange>