ScaleSequentialQuantile
interface ScaleSequentialQuantile <Output, Unknown = never> extends ScaleSequentialBase<Output, Unknown> {
interpolator(): (t: number) => Output;
interpolator(interpolator: (t: number) => Output): this;
interpolator<NewOutput>(interpolator: (t: number) => NewOutput): ScaleSequentialQuantile<NewOutput, Unknown>;
quantiles(): number[];
unknown(): UnknownReturnType<Unknown, undefined>;
}§Extends
§
ScaleSequentialBase<Output, Unknown>
[src]§Methods
§
interpolator(interpolator: (t: number) => Output): this
[src]Sets the scale’s interpolator to the specified function.
@param interpolator
An interpolator function mapping a value from the [0, 1] interval to an output value.
§
interpolator<NewOutput>(interpolator: (t: number) => NewOutput): ScaleSequentialQuantile<NewOutput, Unknown>
[src]Sets the scale’s interpolator to the specified function.
The generic corresponds to a the new output type of the scale. The output type of the scale is determined by the output type of the interpolator function.
@param interpolator
An interpolator function mapping a value from the [0, 1] interval to an output value.
§
quantiles(): number[]
[src]Returns an array of n + 1 quantiles. For example, if n = 4, returns an array of five numbers: the minimum value, the first quartile, the median, the third quartile, and the maximum.
§
unknown(): UnknownReturnType<Unknown, undefined>
[src]Returns the current unknown value, which defaults to undefined.