Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. usChart.width(990)
  2. .height(500)
  3. .dimension(states)
  4. .group(statesGroup)
  5. .colors(d3.scale.quantize().range(["#E2F2FF", "#C4E4FF", "#9ED2FF", "#81C5FF", "#6BBAFF", "#51AEFF", "#36A2FF", "#1E96FF", "#0089FF", "#0061B5"]))
  6. .colorDomain([0, 200])
  7. .colorCalculator(function (d) { return d ? usChart.colors()(d) : '#ccc'; })
  8. .overlayGeoJson(statesJson.features, "state", function (d) {
  9. return d.properties.name;
  10. })
  11. .valueAccessor(function(kv) {
  12. return kv.value;
  13. });
Add Comment
Please, Sign In to add comment