Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MinnPost/simple-map-d3
A very simple "choropleth" style map with D3. All you need is a GeoJSON of polygons.
https://github.com/MinnPost/simple-map-d3
Last synced: 2 months ago
JSON representation
A very simple "choropleth" style map with D3. All you need is a GeoJSON of polygons.
- Host: GitHub
- URL: https://github.com/MinnPost/simple-map-d3
- Owner: MinnPost
- License: mit
- Created: 2013-01-04T20:06:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T16:44:57.000Z (almost 8 years ago)
- Last Synced: 2024-07-02T14:24:14.839Z (6 months ago)
- Language: JavaScript
- Homepage: http://code.minnpost.com/simple-map-d3/
- Size: 3.13 MB
- Stars: 115
- Watchers: 10
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-d3 - simple-map-d3 - Easy choropleth style maps (Maps)
- awesome-d3 - simple-map-d3 - Easy choropleth style maps (Maps)
- awesome-d3 - simple-map-d3 - Easy choropleth style maps (Maps)
README
# 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](http://code.minnpost.com/simple-map-d3/) for instructions, configuration, and examples.
## Development
### Install
1. Install [NodeJS](http://nodejs.org/).
1. Install [Grunt](http://gruntjs.com/): `npm install -g grunt-cli`
1. Install [Bower](http://bower.io/): `npm install -g bower`
1. 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](https://ci.testling.com/minnpost/simple-map-d3.png)](https://ci.testling.com/minnpost/simple-map-d3)