The UN Voting Data Visualization project provides a dashboard to visualize voting patterns in the United Nations General Assembly (UNGA) and Security Council (UNSC). The dashboard allows users to explore voting data and compare two different time periods using various visualizations, including scatter plots, treemaps, and statistical tables.
The project is organized as follows:
un_voting_data_visualization/
├── dataset/ # Automatically created directory and downloaded .csv files
│ ├── yyyy_mm_dd_ga_voting.csv
│ └── yyyy_mm_dd_sc_voting.csv
├── report/
│ └── UN_Voting_Data_Visualization.pdf
├── src/
│ ├── app.py
│ ├── load_data.py
│ └── requirements.txt
└── README.md
A detailed report explaining the methodology, case study, and results can be found in the report directory as UN_Voting_Data_Visualization.pdf.
The easiest way to run the application is using Docker:
# Clone the repo and navigate to directory
git clone https://github.com/loved6/un_voting_data_visualization.git
cd un_voting_data_visualization
# Using the convenience script
./run-docker.sh
# Or using docker-compose directly
docker-compose up --buildThen navigate to http://localhost:8050/ to view the dashboard.
For detailed Docker instructions, see DOCKER.md.
To set up the environment locally, run the following commands from this directory:
git clone https://github.com/loved6/un_voting_data_visualization.git
cd un_voting_data_visualization/src
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt./run-docker.sh
# Or: docker-compose upTo run the dashboard locally, execute:
python app.pyIn a browser, navigate to http://localhost:8050/ (Docker) or http://127.0.0.1:8050/ (local) to view the dashboard.
To visualize the BRICS and G7 international organizations, use the following string in the country groups highlight text field:
BRA, RUS, IND, CHN, ZAF; CAN, FRA, DEU, ITA, JPN, GBR, USA
Automatic downloading of datasets is built in. However, you may download the latest .csv datasets from the following links:
Once downloaded, place the .csv files in the dataset directory within this project.