Closed yaph closed 9 years ago
http://bl.ocks.org/mbostock/5144735
var color = d3.scale.threshold() .domain([30, 60, 120, 360]) .range(["#ffffcc","#c2e699","#78c679","#31a354","#006837"]);
Automatically use it for range if domain is set and longer than 2 elements?
d3.scale.threshold() is now used when domain array has more than 2 elements.
http://bl.ocks.org/mbostock/5144735
Automatically use it for range if domain is set and longer than 2 elements?