Closed jheer closed 7 years ago
Thanks for doing this. I think there might be a couple typos. I ran this quick test:
d3.select("body")
.text(null)
.selectAll(".scheme")
.data(scheme)
.enter().append("div")
.attr("class", "scheme")
.selectAll(".swatch")
.data(scheme => scheme || [])
.enter().append("div")
.attr("class", "swatch")
.style("display", "inline-block")
.style("width", "20px")
.style("height", "20px")
.style("background-color", color => color);
Before:
After:
Okay, fixed! Thank you.
Fixes d3/d3-scale-chromatic#5.
Changes:
PuOr
scheme to match ColorBrewer.img/PuOr.png
file for use in README.md