A very simple "choropleth" style map with D3. All you need is a GeoJSON of polygons.
JavaScript HTML CSS
Latest commit 9928ead Feb 8, 2017 @zzolo zzolo committed on GitHub Merge pull request #7 from tbarmann/tb/fix-bower-install-error
Use non-minified D3 to fix bower error
Permalink
Failed to load latest commit information.
bower_components
dist Building for 0.1.5 Aug 21, 2013
example-data Update of us census example data. Sep 26, 2014
lib Separating legend drag and scale. Aug 21, 2013
tests Adding in basic tests. Aug 19, 2013
.gitignore rearranging things for github pages. Aug 8, 2013
Gruntfile.js rearranging things for github pages. Aug 8, 2013
LICENSE.txt Adding MIT license. Jan 4, 2013
README.md Moving other libraries to bower dev dependencies. Aug 19, 2013
bower.json
index.html
package.json Building for 0.1.5 Aug 21, 2013

README.md

Simple Map (D3)

A very simple "choropleth" style map with tooltips with D3. All you need is a GeoJSON of polygons.

Usage

See code.minnpost.com/simple-map-d3 for instructions, configuration, and examples.

Development

Install

  1. Install NodeJS.
  2. Install Grunt: npm install -g grunt-cli
  3. Install Bower: npm install -g bower
  4. Install packages: npm install && bower install

Build

  1. Run: grunt

Testing

There are some very basic tests in the tests/ folder. Run them like so: node tests/core.js

Browser support

As this library depends heavily on D3 and SVG, Simple Map will only work in "modern" browsers. The following is some basic tests run on Tesling.

browser support