LinearScale
Documentation / @elitechart/core / LinearScale
Defined in: math/scales.ts:88
Linear scale: px = start + (value - min) / (max - min) * (end - start).
Use for time axes and arithmetic price axes.
Example
Implements
Constructors
Constructor
Defined in: math/scales.ts:94
Parameters
domain
range
Returns
LinearScale
Properties
domain
Defined in: math/scales.ts:89
Implementation of
range
Defined in: math/scales.ts:90
Implementation of
Methods
invert()
Defined in: math/scales.ts:107
Map a pixel back to the domain.
Parameters
px
number
Returns
number
Implementation of
scale()
Defined in: math/scales.ts:103
Map a domain value to a pixel position.
Parameters
value
number
Returns
number