An array of ten categorical colors represented as RGB hexadecimal strings.
An array of twenty categorical colors represented as RGB hexadecimal strings.
An array of twenty categorical colors represented as RGB hexadecimal strings.
An array of twenty categorical colors represented as RGB hexadecimal strings. This color scale includes color specifications and designs developed by Cynthia Brewer (colorbrewer2.org).
Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from the “inferno” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from the “magma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from d3.interpolateWarm scale from [0.0, 0.5] followed by the d3.interpolateCool scale from [0.5, 1.0], thus implementing the cyclical less-angry rainbow color scheme.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from the “viridis” perceptually-uniform color scheme designed by van der Walt, Smith and Firing for matplotlib, represented as an RGB string.
A number in the interval [0, 1].
Given a number t in the range [0,1], returns the corresponding color from a 180° rotation of Niccoli’s perceptual rainbow, represented as an RGB string.
A number in the interval [0, 1].
Constructs a new band scale with the empty domain, the unit range [0, 1], no padding, no rounding and center alignment.
Constructs a new band scale with the empty domain, the unit range [0, 1], no padding, no rounding and center alignment.
The generic correponds to the data type of domain elements.
Constructs a new identity scale with the unit domain [0, 1] and the unit range [0, 1].
Constructs a new continuous linear scale with the unit domain [0, 1], the unit range [0, 1], the default interpolator and clamping disabled.
The scale will have range and output of data type number.
Constructs a new continuous linear scale with the unit domain [0, 1], the default interpolator and clamping disabled.
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour. The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new continuous linear scale with the unit domain [0, 1], the default interpolator and clamping disabled.
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new continuous logarithmic scale with the domain [1, 10], the unit range [0, 1], the base 10, the default interpolator and clamping disabled.
The scale will have range and output of data type number.
Constructs a new continuous logarithmic scale with the domain [1, 10], the base 10, the default interpolator and clamping disabled.
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new continuous logarithmic scale with the domain [1, 10], the base 10, the default interpolator and clamping disabled.
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new ordinal scale with an empty domain and the specified range. If a range is not specified, it defaults to the empty array; an ordinal scale always returns undefined until a non-empty range is defined.
By default, the domain is configured to generate implicitly, if the scale is invoked with an unknown value. See the "unknown(...)" method of the scale to change this behavior.
The generic corresponds to the data type of range elements.
Constructs a new ordinal scale with an empty domain and the specified range. If a range is not specified, it defaults to the empty array; an ordinal scale always returns undefined until a non-empty range is defined.
By default, the domain is configured to generate implicitly, if the scale is invoked with an unknown value. See the "unknown(...)" method of the scale to change this behavior.
The first generic corresponds to the data type of domain elements. The second generic corresponds to the data type of range elements.
Constructs a new point scale with the empty domain, the unit range [0, 1], no padding, no rounding and center alignment.
Constructs a new point scale with the empty domain, the unit range [0, 1], no padding, no rounding and center alignment.
The generic corresponds to the data type of domain elements.
Constructs a new continuous power scale with the unit domain [0, 1], the unit range [0, 1], the exponent 1, the default interpolator and clamping disabled. (Note that this is effectively a linear scale until you set a different exponent.)
The scale will have range and output of data type number.
Constructs a new continuous power scale with the unit domain [0, 1], the exponent 1, the default interpolator and clamping disabled. (Note that this is effectively a linear scale until you set a different exponent.)
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new continuous power scale with the unit domain [0, 1], the exponent 1, the default interpolator and clamping disabled. (Note that this is effectively a linear scale until you set a different exponent.)
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new quantile scale with an empty domain and an empty range. The quantile scale is invalid until both a domain and range are specified.
Constructs a new quantile scale with an empty domain and an empty range. The quantile scale is invalid until both a domain and range are specified.
The generic correponds to the data type of range elements.
Constructs a new quantize scale with the unit domain [0, 1] and the unit range [0, 1]. Thus, the default quantize scale is equivalent to the Math.round function.
Constructs a new quantize scale with the unit domain [0, 1].
The range must be set corresponding to the type of the range elements.
The generic corresponds to the data type of the range elements.
Constructs a new sequential scale with the given interpolator function. When the scale is applied, the interpolator will be invoked with a value typically in the range [0, 1], where 0 represents the start of the domain, and 1 represents the end of the domain.
The generic corresponds to the data type of the output of the interpolator underlying the scale.
The interpolator function to be used with the scale.
Constructs a new continuous power scale with the unit domain [0, 1], the unit range [0, 1], the exponent 0.5, the default interpolator and clamping disabled. This is a convenience method equivalent to d3.scalePow().exponent(0.5).
The scale will have range and output of data type number.
Constructs a new continuous power scale with the unit domain [0, 1], the exponent 0.5, the default interpolator and clamping disabled. This is a convenience method equivalent to d3.scalePow().exponent(0.5).
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new continuous power scale with the unit domain [0, 1], the exponent 0.5, the default interpolator and clamping disabled. This is a convenience method equivalent to d3.scalePow().exponent(0.5).
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new threshold scale with the default domain [0.5] and the default range [0, 1]. Thus, the default threshold scale is equivalent to the Math.round function for numbers; for example threshold(0.49) returns 0, and threshold(0.51) returns 1.
Constructs a new threshold scale. The domain and range must be set corresponding to the type of the corresponding generic.
The first generic corresponds to the data type of domain values. The second generic corresponds to the data type of range values.
Constructs a new time scale using local time with the domain [2000-01-01, 2000-01-02], the unit range [0, 1], the default interpolator and clamping disabled.
The scale will have range and output of data type number.
Constructs a new time scale using local time with the domain [2000-01-01, 2000-01-02], the default interpolator and clamping disabled.
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new time scale using local time with the domain [2000-01-01, 2000-01-02], the default interpolator and clamping disabled.
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new time scale using Coordinated Universal Time (UTC) with the domain [2000-01-01, 2000-01-02], the unit range [0, 1], the default interpolator and clamping disabled.
The scale will have range and output of data type number.
Constructs a new time scale using Coordinated Universal Time (UTC) with the domain [2000-01-01, 2000-01-02], the default interpolator and clamping disabled.
The generic correponds to the data type of the range and output elements to be used.
As range type and output type are the same, the interpolator factory used with the scale must match this behaviour.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Constructs a new time scale using Coordinated Universal Time (UTC) with the domain [2000-01-01, 2000-01-02], the default interpolator and clamping disabled.
The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale.
If range element and output element type differ, the interpolator factory used with the scale must match this behaviour and convert the interpolated range element to a corresponding output element.
The range must be set in accordance with the range element type.
The interpolator factory may be set using the interpolate(...) method of the scale.
Generated using TypeDoc
A special value for ordinal.unknown that enables implicit domain construction: unknown values are implicitly added to the domain.