Group Research Project for PSC354 at University at Buffalo. Contains Python Script for parsing V-Dem Democracy Scores and the KOF Globalization Index, visualizing the relationship between democracy scores and trade openness across different countries and regime categories from 1970–2020. Also contains a Dash web application that visualizes the data for sharing and presentation purposes.
Website Link: https://insistent-vague-lanserver-sameerjain501.replit.app/
- Individual country analysis with regime type indicators
- Aggregate analysis by V-Dem Regime Category
- Dark Blue Theming
app.py– Dash applicationpsc_354_research_project_fileparser_vdem_and_kof.py– Data processing scriptdocumented_code– Commented versions of filesdemocracy_trade_analysis.xlsx– Parsed datasetassets/style.css– More specific styling for web app
-
Requires Python 3.11+
-
Install dependencies:
pip install dash dash-bootstrap-components flask matplotlib openpyxl pandas plotly xlsxwriter
-
Launch:
python app.py
-
Visit:
- Local: http://0.0.0.0:8050
-
V-Dem Dataset – Democracy scores + regime types
-
KOF Globalization Index Dataset – Trade openness values
- Democracy Score (blue line)
- Trade Openness (green line)
- Regime indicators
- Missing data (light red)
- Aggregated trends
- 2×2 grid layout for comparison
- Liberal Democracy → Green
- Electoral Democracy → Blue
- Electoral Autocracy → Red
- Closed Autocracy → Dark blue
- Dash (frontend)
- Plotly (graphs)
- Pandas (data)
- Bootstrap (styling)

