Electoral Cartogram of Canada
This site interactively shows federal election results for Canada from 2015 to 2021 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.
Election results for recent and past elections were copied from Elections Canada under their terms and conditions for non-commercial reproduction of data. Other data for party changes was sourced from Wikipedia entries for the 42nd and 43rd Parliament.
This package uses NPM for dependencies.
To install dependencies:
To run the development server:
npm run dev
To export the site to static HTML (in the
npm run export