Choropleth of countries by populations
$ npm install d3node-map-world
const d3nMap = require('d3node-map-world');
const map = d3nMap(data, { projectionKey: 'Mercator' })
Check out the example for usage.
npm start
- Type:
Array
Delimited data file parsed by d3
- projectionKey (default: NaturalEarth)
- width (default: 960)
- height (default: 500)
- colors
Hex, RGB color code
- colorRanges
- styles