In-browser exploration of income gaps between different populations.
This interactive simulation allows users to explore differences in income across different occupations and subpopulations. This includes gender, race / ethnicity, age, education, etc. This also supports filtering and gini index.
Available online at https://incomegaps.com.
Simply run any local HTTP server capable of serving static files in the website folder. For example, use python -m http.server
and navigate to http://localhost:8000/. Note that preprocessing scripts are in preprocess
.
Automated tests are avialable either by navigating to http://localhost:8000/tests/tests.html assuming one is running a server in the website folder. Automated tests can also be run via Grunt:
$ npm install requirements.txt
$ grunt
This can be deployed to any static file serving system.
Try for 80% test coverage and jsdoc for all public members.
Code available under the MIT license (see LICENSE.md
). Uses the following:
- ColorBrewer
- D3 under the BSD license
- Jupyter under the BSD license
- Load Awesome under the MIT license
- Numpy under the BSD license
- Pandas under the BSD license
- PapaParse under the MIT license
- Python
Uses US Census Microdata samples via EPI Microdata Extracts. The live version at https://incomegaps.com uses April 2021 to April 2022. Citation: Economic Policy Institute. 2022. Current Population Survey Extracts, Version 1.0.29, https://microdata.epi.org.