Skip to content

Documentation / @ripl/core / scaleTime

Function: scaleTime()

scaleTime(domain, range, options?): Scale<Date, number>

Defined in: packages/core/src/scales/time.ts:197

Creates a time scale that maps a Date domain to a numeric range using linear interpolation of timestamps.

Parameters

ParameterType
domainDate[]
rangenumber[]
options?LinearScaleOptions

Returns

Scale<Date, number>