projects/common/chart/scales/time.ts
Pure-TS time scale. Reuses createLinearScale after coercing Date endpoints (and inputs) to epoch milliseconds. Supports inverted domains and bare-number timestamps interchangeably.
Date
createTimeScale(domain, range)
[start, end] time range. Date and number are interchangeable on either endpoint.
[start, end]
number
[start, end] output range (typically pixel coordinates).
(v: Date | number) => number mapping time values to range values.
(v: Date | number) => number