LogScale
Documentation / @elitechart/core / LogScale
Defined in: math/scales.ts:125
Log scale over positive values. Domain must be strictly positive — non-positive values throw at construction.
Use for price axes on instruments with multi-decade range (BTC at $100 → $100k, equities tracked across IPOs).
Example
Implements
Constructors
Constructor
Defined in: math/scales.ts:132
Parameters
domain
range
Returns
LogScale
Properties
domain
Defined in: math/scales.ts:126
Implementation of
range
Defined in: math/scales.ts:127
Implementation of
Methods
invert()
Defined in: math/scales.ts:152
Map a pixel back to the domain.
Parameters
px
number
Returns
number
Implementation of
scale()
Defined in: math/scales.ts:145
Map a domain value to a pixel position.
Parameters
value
number
Returns
number