Skip to content

Choropleth map of World populations (w/ 43 projections)

Notifications You must be signed in to change notification settings

d3-node/d3node-map-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map of World

Choropleth of countries by populations

Install

$ npm install d3node-map-world

Usage

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 start

Output (Natural Earth projection):

map

API

d3nMap(data, options)

data
  • Type: Array

Delimited data file parsed by d3

Options <Object>

  • projectionKey (default: NaturalEarth)
  • width (default: 960)
  • height (default: 500)
  • colors Hex, RGB color code
  • colorRanges
  • styles

Other Projections

Albers

map

Boggs

map

Collignon

map

CylindricalEqualArea

map

Eckert4

map

Hammer

map

Hill

map

Homolosine

map

Kavrayskiy7

map

Lagrange

map

Mercator

map

Miller

map

Mollweide

map

LICENSE

MIT © d3-node

About

Choropleth map of World populations (w/ 43 projections)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published