Assignment 4
In this assignment, you will create an interactive data visualization dashboard with Dash. You can continue working on the COVID Dashboard that we started in class (as long as you choose an endpoint other than https://api.covid19api.com/summary) or you can choose a new dataset and build a custom dashboard for that.
Assignment Requirements
You may use any data in .json format that contains nested structures of lists and dictionaries. You may get this data from a .json file like in the previous assignment or from a web API. If you use the COVID API, pick a new endpoint other than the https://api.covid19api.com/summary one we used in class (for example, see https://rapidapi.com/collection/list-of-free-apis, Yelp, NASA, etc.). Note that many of the Web API require you to register and use a password-like key when you use the API - they’re all a little different so you will need to look for examples of how to use that one.
Your dashboard needs to include the following
- a data visualization, like a bar graph, line graph, or map (see https://plotly.com/python/ for more examples)
- a user interface component (like a dropdown menu or input box - see https://dash.plotly.com/dash-core-components) that causes some change in the visualization
Note: You do have the option of using the https://api.covid19api.com/live/country/united-states endpoint and completing the state-level line graph dashboard we started in class.
What to turn in
Submit the following to the Assignment 4: Dashboard assignment on codePost. Include the following
- Your
.pyfile with all your code. - Something that shows what your data looks like - it can be a partial
.jsonfile or a bit of the data copy-and-pasted into the comments of your code. - A screenshot that shows your dashboard working on your own computer - so I can see what it looks like if I can’t get it running (which I probably won’t if you use a new data source).
Grading
This is an 8-point assignment. See the rubric from the syllabus.