d3 / d3-scale-chromatic

Sequential, diverging and categorical color scales.
https://d3js.org/d3-scale-chromatic
Other
801 stars 106 forks source link

Add cividis color scale, a scheme for viewers with color vision deficiency #15

Closed hollasch closed 5 years ago

hollasch commented 6 years ago

The cividis scale is a derivative of the viridis scale, adjusted for viewers with color vision deficiency, and also for those with standard vision, but avoiding the errors common with rainbow-style schemes.

cividis color scale

References:

mbostock commented 6 years ago

Here’s a quick demo:

https://beta.observablehq.com/@mbostock/cividis

hollasch commented 6 years ago

Sweet! Wish I could have found a continuous formula, but the 256 LUT is probably fine. Looks great Mike.

mbostock commented 5 years ago

I computed a fifth-order polynomial regression as a continuous approximation that seems to work well. It’ll be in the next release.

hollasch commented 5 years ago

Thanks Mike!