A modular version of this excellent choropleth - will map any CSV statesdata.csv
on a linear continuous value, using d3js v4.
Requirements for statesdata.csv
:
state
column with standard full-length state namesvalue
column with any numeric valuesAlso, you can edit the color ramp using the lowColor
and highColor
variables.
forked from wboykinm's block: Modular US State Choropleth
forked from anonymous's block: Modular US State Choropleth
Updated missing url https://cdn.rawgit.com/Caged/d3-tip/v0.8.0-alpha.1/index.js to https://cdn.jsdelivr.net/gh/caged/d3-tip/v0.8.0-alpha.1/index.js
https://d3js.org/d3.v4.min.js
https://cdn.rawgit.com/Caged/d3-tip/v0.8.0-alpha.1/index.js