Skip to content

o-mdonyelwa/MY_DASH_APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 GDP vs Life Expectancy Dashboard

This interactive Dash application visualizes the relationship between GDP per capita and life expectancy for various countries in the year 2007. It aims to help users explore how economic output relates to health outcomes globally, using a clean and intuitive scatter plot enriched with contextual information like population size and continent.


📊 Features

  • 🧮 Interactive scatter plot of GDP per capita vs life expectancy
  • 🌐 Color-coded continents for regional comparison
  • 🧠 Bubble size represents population size
  • 🔍 Hover to see country-specific details
  • 🧭 Dynamic and intuitive layout using Plotly Dash
  • ✅ Highlights trends, outliers, and regional patterns

🛠️ Built With

  • Dash – for building the interactive dashboard
  • Plotly – for advanced, interactive plotting
  • Pandas – for data manipulation
  • Python – core logic and server-side scripting
  • CSV Data – containing country-level indicators from 2007

🚀 Getting Started

📦 Prerequisites

Make sure you have Python 3.7+ installed. Then install the required libraries:

pip install dash pandas plotly

🧪 Run the App

Clone the repository and run the app:

git clone https://github.com/yourusername/my_dash_app.git
cd my_dash_app
python app.py

Then open your browser and navigate to:

http://127.0.0.1:8050/

📂 Project Structure

my_dash_app/
│
├── app.py               # Main Dash application
├── data/
│   └── gapminder2007.csv  # Dataset used for visualization
├── assets/
│   └── style.css        # (Optional) Custom CSS styles
├── README.md            # Project documentation
└── requirements.txt     # Dependencies

📈 Example Visualization

A sample output of the dashboard:

  • X-axis: GDP per Capita
  • Y-axis: Life Expectancy
  • Color: Continent
  • Size: Population

This layout allows easy spotting of clusters and anomalies, such as high-income countries with unexpectedly low life expectancy or large-population countries with low GDP but high life expectancy.


📄 Dataset Source

The data is sourced from the Gapminder Foundation, representing socio-economic statistics for the year 2007.


🔮 Future Improvements

  • Year slider to explore data across multiple years
  • Filtering by continent or income group
  • Export data or chart snapshots
  • Mobile-friendly layout

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the app.


📄 License

This project is licensed under the MIT License.


👨‍💻 Author

Obakeng Mdonyelwa 🔗 GitHub 🔗 LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors