d3.interpolateHclLong()

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

d3.interpolateHcl()

d3.interpolateHcl(a, b) Returns an HCL color space interpolator between the two colors a and b. The colors a and b need not be in HCL; they will be converted to HCL using d3.hcl. If either color’s hue or chroma 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.

d3.schemeGreys

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

d3.schemeGreens

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

d3.schemeGnBu

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

d3.interpolateDate()

d3.interpolateDate(a, b) Returns an interpolator between the two dates a and b. Note: no defensive copy of the returned date is created; the same Date instance is returned for every evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.

d3.interpolateCubehelixLong()

d3.interpolateCubehelixLong(a, b) Or, with a gamma of 3.0 to emphasize high-intensity values: Like interpolateCubehelix, but does not use the shortest path between hues.

d3.interpolateCubehelixDefault()

d3.interpolateCubehelixDefault(t) Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string.

d3.interpolateCubehelix()

d3.interpolateCubehelix(a, b) Or, with a gamma of 3.0 to emphasize high-intensity values: Returns a Cubehelix color space interpolator between the two colors a and b using a configurable gamma. If the gamma is not specified, it defaults to 1.0. The colors a and b need not be in Cubehelix; they will be converted to Cubehelix using d3.cubehelix. 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 t

d3.interpolateCool()

d3.interpolateCool(t) Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.