d3 / d3-scale-chromatic

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

Is the PuOr scheme backwards? #5

Closed jheer closed 7 years ago

jheer commented 7 years ago

interpolatePuOr and schemePuOr ramp from orange to purple. This behavior is different from all the other examples, where the order of colors matches the order of color names in the exported property name. In addition, ColorBrewer also ramps from purple (a default for low values) to orange (a default for high values). Not sure if this was intentional or not, so thought it worthwhile to add an issue.

mbostock commented 7 years ago

Looks like a mistake to me! Want to send a PR?

jheer commented 7 years ago

Opened a PR, closing this issue.