/cartography

takes a state and outputs topojson shape file of the counties for that state using census bureau, d3, and topojson

Primary LanguageTypeScript

Cartography

This project is basically an attempt at automating creating svg files of a state's counties.
Mike Bostock wrote an article on how to do this from the command line and I'm attempting to create a nodejs tool which can also do this. Basically you provide the state and this app should output an SVG file.

Getting the project and setting up your environment

You must have nodejs installed. And you need TypeScript installed: npm i -g typescript

Building and running

  1. Clone this project: git clone https://github.com/evanlarsen/cartography
  2. Go into the project directory: cd cartography
  3. Install dependencies npm install
  4. Build & Run npm start

Running the Tests

Run npm test to run the unit tests