0.1.0 • Published 8 years ago
d3node-map-world v0.1.0
Map of World
Choropleth of countries by populations
Install
$ npm install d3node-map-worldUsage
const d3nMap = require('d3node-map-world');
const map = d3nMap(data, { projectionKey: 'Mercator' })Check out the example for usage.
Output the example map to an image
npm startOutput (Natural Earth projection):

API
d3nMap(data, options)
data
- Type:
Array
Delimited data file parsed by d3
Options (optional properties)
width = 960
height = 500
colors
colorRanges
styles
Other Projections
Albers

Boggs

Collignon

CylindricalEqualArea

Eckert4

Hammer

Hill

Homolosine

Kavrayskiy7

Lagrange

Mercator

Miller

Mollweide
