d3 / d3-scale-chromatic

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

interpolateCividis yields grayscale #22

Closed jrtuenge closed 5 years ago

jrtuenge commented 5 years ago

When I substitute interpolateCividis for interpolateRainbow, the displayed spectrum (for my supplied log-log data) changes from purple-green to black-gray. I'm loading directly from https://d3js.org/d3-scale-chromatic.v1.min.js

mbostock commented 5 years ago

Works fine here:

https://observablehq.com/@d3/color-schemes?collection=@d3/d3-scale-chromatic#Cividis

Perhaps there’s an issue with how you’re loading D3 (e.g., you’re combining the d3 default bundle with an individual module such as d3-scale-chromatic)? But since you didn’t share your code, I can’t help debug.