English
Interface: D3PColorScaleOptions
Defined in: core/color.ts:12
Options of a color scale: the domain of values, the interpolator of colors, the number of bins and whether it is reversed.
Properties
bins?
ts
bins?: number;Defined in: core/color.ts:20
Number of color steps (a quantized, "binned" scale); default: continuous.
bus?
ts
bus?: D3PBus;Defined in: core/color.ts:14
The bus the scale uses (the global bus by default).
domain?
ts
domain?: [number, number] | D3PAxisDomain;Defined in: core/color.ts:16
The values mapped to the two ends of the scale: a D3PAxisDomain (to share or to fit with an auto domain) or [min, max].
interpolator?
ts
interpolator?: (t) => string;Defined in: core/color.ts:18
t in [0, 1] to a color; default d3.interpolateYlOrRd. Any d3.interpolate* scheme works.
Parameters
t
number
Returns
string
reverse?
ts
reverse?: boolean;Defined in: core/color.ts:22
Swap the two ends.