Intermact API Reference / @intermact/core / timeScale
Function: timeScale()
timeScale(
domain,range):Scale<Date,number>
Defined in: packages/core/src/math/scale.ts:375
Time scale mapping [Date, Date] onto a numeric range (design.md §7.3).
Parameters
domain
readonly [Date, Date]
range
readonly [number, number]
Returns
Scale<Date, number>