Plot.cellX(d3.range(20)).plot({
caption: "Specifying a custom interpolate function. The interpolate function is invoked with the start and end colors, and must return a function that takes a single parameter t in [0, 1]; this latter function is then repeatedly invoked to return the scale’s colors; identical to the above.",
color: {
range: ["steelblue", "brown"],
interpolate: (start, end) => (t) => d3.interpolateHsl(start, end)(t)
}
})