Welcome to the DIY Covid-19 Dashboard repository! This project provides an interactive dashboard to visualize and compare Covid-19 data for England and Scotland. The dashboard is built using Python, leveraging various data visualization and interactive libraries.
- Interactive Data Visualization: The dashboard allows users to select and visualize Covid-19 cases, hospitalizations, and deaths for England and Scotland.
- Real-Time Data Updates: Users can refresh the dashboard to fetch the latest Covid-19 data from the Public Health England (PHE) API and visualize it instantly.
- Customizable Graphs: The dashboard provides options to select specific data categories (cases, hospitalizations, deaths) and to choose between linear or logarithmic scales for graph visualization.
Ensure you have the following Python packages installed:
pip install ipywidgets pandas numpy matplotlib uk-covid19
-
Clone the repository:
git clone https://github.com/Nathb2001/COVID-19-DASHBOARD.git cd diy-covid-dashboard
-
Launch Jupyter Notebook:
jupyter notebook
-
Open the
covid_dashboard.ipynb
notebook and run all cells to start the dashboard.
The dashboard for England allows users to:
- Select Data: Use the "Stats" widget to select one or more categories (cases, hospitalizations, deaths) to visualize.
- Choose Scale: Select between a linear or logarithmic scale for the y-axis of the graph.
- Refresh Data: Click the "Refresh Data" button to retrieve the latest data from the PHE API.
Similarly, the Scotland dashboard provides:
- Select Data: Choose from cases, hospitalizations, and deaths for visualization.
- Choose Scale: Switch between linear and logarithmic scales.
- Refresh Data: Update the graph with the most recent data by pressing the "Refresh Data" button.
- Data Wrangling: The
wrangle_data()
function processes raw Covid-19 data into a time series format suitable for plotting. - API Access: The
access_api()
andaccess_api_scotland()
functions fetch the latest Covid-19 data for England and Scotland, respectively. - Graph Refreshing: The
refresh_graph()
andrefresh_graph_scotland()
functions update the graphs based on user-selected options. - Interactive Controls: Widgets (dropdowns, radio buttons) enable users to customize the data displayed on the graphs.
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Data provided by Public Health England (PHE) and the uk-covid19 Python package.
- Interactive widgets powered by ipywidgets.