Utilities for creating scales for multiple data series together (fixed) or separately (free). Used internally by Sparklines facet views, but may be useful generally.
A declarative type for how to scale x and y dimensions of data series
Either a single fixed scale or a list of free scales. A result type.
Either a single fixed scale or a list of free scales, for x and y dimensions. A result type.
Create a linear scale from a single arbitrary data series, given the accessor and the range.
Create a fixed linear scale from a list of arbitrary data series, given the accessor and the range. (The domain of fixed scales is from the minimum value of all the series to the maximum value of all the series.)
Create free linear scales from a list of arbitrary data series, given the accessor and the range. (The domain of free scales is the domain of each data series separately.)
Create a continuous time scale from a single arbitrary data series, given the accessor and the range.
Create a fixed continuous time scale from a list of arbitrary data series, given the accessor and the range. (The domain of fixed scales is from the minimum value (time) of all the series to the maximum value of all the series.)
Create free continuous time scales from a list of arbitrary data series, given the accessor and the range. (The domain of free scales is the domain of each data series separately.)
Create a single time band scale from an arbitrary data series, given the BandScale configuration , accessor and the range.
Note that this function does not change the data in any way, so you should pre-aggregate data by time interval and deal with possible gaps in intervals. The Timeseries module has tools for doing this.
Create a fixed time band scale from a list of arbitrary data series, given the BandScale configuration , accessor and the range. (The domain of fixed time band scales is a list of times from the earliest in all the series to the latest in all the series.)
Note that this function does not change the data in any way, so you should pre-aggregate data by time interval and deal with possible gaps in intervals. The Timeseries module has tools for doing this.
Create free time band scales from a list of arbitrary data series, given the BandScale configuration , accessor and the range. (The domain of free time band scales is a list of times from the earliest to the latest, within each series separately.)
Note that this function does not change the data in any way, so you should pre-aggregate data by time interval and deal with possible gaps in intervals. The Timeseries module has tools for doing this.
A declarative type for how to scale data series