This Streamlit app visualizes bilateral relationship scores between 100 countries from 1945 to 2024. It supports interactive heatmaps, network graphs, pairwise comparisons, and more.
- Heatmap of country-to-country relationships (overall, economic, political, security, cultural)
- Interactive tooltips and details on hover/click
- Year slider to explore changes over time
- Top-N strongest/weakest relationships
- Country relationship distribution (histogram, boxplot, summary stats)
- Country-to-network graph
- Pairwise comparison (table and line charts)
- Modular, efficient, and optimized for performance
data/overall.csv: Main dataset. Columns:year,country1,country2,overall,economic,political,security,culturaldata/countries.txt: List of country names (one per line)
git clone https://github.com/mlucifer27/bilateral-visualization.git
cd bilateral-visualizationIt is recommended to use a virtual environment.
pip install -r requirements.txtstreamlit run app.pyThe app will open in your browser at http://localhost:8501.
- Push your code (including data files) to GitHub.
- Go to https://streamlit.io/cloud and sign in with GitHub.
- Click "New app", select your repo, branch, and
app.py. - Click "Deploy". Your app will be live at a public URL.
- Ensure
data/overall.csvanddata/countries.txtare present in the repo for deployment. - For large/private data, consider using cloud storage and loading data at runtime.
- For secrets, use Streamlit's secrets management.
- All key parameters (year range, colormap, figure size, etc.) are modularized in the code for easy adjustment.
- The app is structured for easy extension and optimization.
MIT







