Skip to content

Latest commit

 

History

History
executable file
·
29 lines (19 loc) · 1.32 KB

README.md

File metadata and controls

executable file
·
29 lines (19 loc) · 1.32 KB

Data Mapper

Generate county-level choropleth or bubble maps. This is a very new project and I explect to be cleaning it up heavily over the next month or two.

As long as your data has a 'fips' field, Data Mapper will make you a map. Your data can also include an optional 'sequence' field, which can be a date, year, day of the week, or any category that you may want to group your data by. Data Mapper will assume any field not named 'fips' or 'sequence' is something you want to map.

Demo at kcollins.io/data-mapper/demo.html

Or just paste in a CSV at kcollins.io/data-mapper/

Snippets

  <link href="http://kcollins.io/data-mapper/datamapper.css" media="all" rel="stylesheet" />
  <script src="http://kcollins.io/data-mapper/datamapper.js" type="text/javascript"></script>

Usage

Data Mapper requires d3.js, topojson, and queue

  datamapper(mapContainer, mapType, data);
  // mapContainer is the id or class of the div you want to append everything to
  // mapType can be 'bubble' or 'choropleth'
  // data is your data, not nested, must include a 'fips field'