Skip to content

cicero-data/efficiency-gap-reports

Repository files navigation

efficiency-gap-reports

Calculate and display partisan bias in a delegation's districts with efficiency gap scores.

Swap-out and configure election results and district boundaries then automatically generate a series of infographics for each delegation in the election.

Learn More

Azavea Data Analytics

A project of Azavea Data Analytics.

Read more about the methods used in this project on the Azavea Blog, "Leveraging Node.js, D3.js, and HTML Canvas for Scalable Infographics".

For more information about Azavea's redistricting work, read "The Evolution of Azavea’s Redistricting and Gerrymandering Work".

Data

By default, this project is setup to generate reports on the 2016 US Congressional election. The file results.csv is the data used to generate reports.

Install

Requires Node.js.

Install dependencies with:

npm install

Setup Election

Edit config.yml to point to your election data.

Generate Reports

npm run reports

Images for each delegation will be written to the figures directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published