-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
I have a map that I'd like to show negative colors in red. I tried declaring the min and max like this:
.map({
countries: {
attr: { // todo min, max, empty, legend and rollup don't work
fill: {
min: "red",
max: "blue",
empty: "white",
},
},
But this doesn't do it correctly. If you have a bunch of positive values and only one negative value, D3 scales the colors accordingly so a lot of positive values are in red.
I'm looking for a way to have positive values in one color scheme and negative values be in a different color scheme.