https://github.com/d3-node/d3node-map-world
Choropleth map of World populations (w/ 43 projections)
https://github.com/d3-node/d3node-map-world
albers choropleth d3js gis mercator nodejs
Last synced: 10 months ago
JSON representation
Choropleth map of World populations (w/ 43 projections)
- Host: GitHub
- URL: https://github.com/d3-node/d3node-map-world
- Owner: d3-node
- Created: 2017-07-16T05:02:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T18:07:19.000Z (over 8 years ago)
- Last Synced: 2024-04-26T17:22:29.941Z (almost 2 years ago)
- Topics: albers, choropleth, d3js, gis, mercator, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.04 MB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Map of World
Choropleth of countries by populations
## Install
```bash
$ npm install d3node-map-world
```
## Usage
```js
const d3nMap = require('d3node-map-world');
const map = d3nMap(data, { projectionKey: 'Mercator' })
```
Check out the [example](./example) for usage.
##### Output the example map to an image
```
npm start
```
#### Output (Natural Earth projection):

## API
### d3nMap(data, options)
##### data
- Type: `Array`
Delimited data file parsed by d3
#### Options ``
- projectionKey (default: NaturalEarth)
- width (default: 960)
- height (default: 500)
- colors `Hex, RGB color code`
- colorRanges
- styles
## Other Projections
#### Albers

#### Boggs

#### Collignon

#### CylindricalEqualArea

#### Eckert4

#### Hammer

#### Hill

#### Homolosine

#### Kavrayskiy7

#### Lagrange

#### Mercator

#### Miller

#### Mollweide

### LICENSE
[MIT](LICENSE) © [d3-node](https://github.com/d3-node)