Skip to content
Electoral Cartogram of Canada
TypeScript JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components
css
data
pages
public
.gitignore
LICENSE
README.md
next-env.d.ts
next.config.js
package-lock.json
package.json
tsconfig.json

README.md

Electoral Cartogram of Canada

Created by Luke Andrews under an MIT License. Copyright © 2019 Luke Andrews.

This site interactively shows federal election results for Canada from 2011 to 2019 in a cartogram which emphasizes population distribution by presenting every electoral district as the same shape and size. You can see it published at electoralcartogram.ca.

The original map was drawn by hand using Affinity Designer, and then converted to SVG format. The site was coded in Typescript with the Next.js framework.

Election results for recent and past elections were copied from Elections Canada under their terms and conditions for non-commercial reproduction of data.

Development

This package uses NPM for dependencies.

To install dependencies: npm install

To run the development server: npm run dev

To export the site to static HTML (in the out directory): npm run export

You can’t perform that action at this time.