Scale
Documentation / @elitechart/core / Scale
Defined in: math/scales.ts:49
Generic scale contract — bidirectional mapping between a numeric
domain and a pixel range.
Example
Properties
domain
Defined in: math/scales.ts:50
range
Defined in: math/scales.ts:51
Methods
invert()
Defined in: math/scales.ts:55
Map a pixel back to the domain.
Parameters
px
number
Returns
number
scale()
Defined in: math/scales.ts:53
Map a domain value to a pixel position.
Parameters
value
number
Returns
number