Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usChart.width(990)
- .height(500)
- .dimension(states)
- .group(statesGroup)
- .colors(d3.scale.quantize().range(["#E2F2FF", "#C4E4FF", "#9ED2FF", "#81C5FF", "#6BBAFF", "#51AEFF", "#36A2FF", "#1E96FF", "#0089FF", "#0061B5"]))
- .colorDomain([0, 200])
- .colorCalculator(function (d) { return d ? usChart.colors()(d) : '#ccc'; })
- .overlayGeoJson(statesJson.features, "state", function (d) {
- return d.properties.name;
- })
- .valueAccessor(function(kv) {
- return kv.value;
- });
Add Comment
Please, Sign In to add comment