d3.schemePiYG

d3.interpolatePiYG(t) d3.schemePiYG Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.

d3.schemeOrRd

d3.interpolateOrRd(t) d3.schemeOrRd Given a number t in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string.

d3.schemeOranges

d3.interpolateOranges(t) d3.schemeOranges Given a number t in the range [0,1], returns the corresponding color from the “Oranges” sequential color scheme represented as an RGB string.

d3.interpolateObject()

d3.interpolateObject(a, b) Returns an interpolator between the two objects a and b. Internally, an object template is created that has the same properties as b. For each property in b, if there exists a corresponding property in a, a generic interpolator is created for the two elements using interpolate. If there is no such property, the static value from b is used in the template. Then, for the given parameter t, the template's embedded interpolators are evaluated and the updated object temp

d3.interpolateNumber()

d3.interpolateNumber(a, b) Returns an interpolator between the two numbers a and b. The returned interpolator is equivalent to: function interpolator(t) { return a * (1 - t) + b * t; } Caution: avoid interpolating to or from the number zero when the interpolator is used to generate a string. When very small values are stringified, they may be converted to scientific notation, which is an invalid attribute or style property value in older browsers. For example, the number 0.0000001 is conver

d3.interpolateMagma()

d3.interpolateMagma(t) 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.

d3.interpolateLab()

d3.interpolateLab(a, b) Returns a Lab color space interpolator between the two colors a and b. The colors a and b need not be in Lab; they will be converted to Lab using d3.lab. The return value of the interpolator is an RGB string.

d3.interpolateInferno()

d3.interpolateInferno(t) 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.

d3.interpolateHslLong()

d3.interpolateHslLong(a, b) Like interpolateHsl, but does not use the shortest path between hues.

d3.interpolateHsl()

d3.interpolateHsl(a, b) Returns an HSL color space interpolator between the two colors a and b. The colors a and b need not be in HSL; they will be converted to HSL using d3.hsl. If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string.