Task: Embed three charts, two of which are given, and the other to be taken from the rapidcharts repository.
Charts one and two were provided for me, and I picked chart three myself.
Task: Embed two charts, one using an API data source, the other using an open-access file hosted on Github.
Chart four provides the vaccination rate for different cities using the Covid-19 API provided by data.gov.uk.
Chart five shows cumulative deaths for different cities, and uses a csv file stored on 'github.com/MaxTuu/MaxTuu.GitHub.io' as its data source.
Task: Embed two charts, one where the data is "in-line" JSON, and one where the data has been changed
Chart six uses an in-line JSON list as its data source, and presents this as a radial plot.
Chart seven uses a github-hosted CSV file where an orginal gross national income dataset has been manipulated to show change in GNI per quater.
Task: Embed two charts that use APIs that have been sourced independently
Chart eight uses the forecast api from 'openweathermap.org' to present the predicted weather for the next four days.
Chart nine uses the oncall api from 'openweathermap.org', this time presenting the predicted humidity of Bristol for the next 2 days.
Task: Batch download data from different API's using python.
Using python code, data from four seperate APIs are downloaded and appended to create one single JSON data file, which in turn produces the following trellis chart.
In particular, chart ten compares daily PCR tests taken across the UK.
Task: Build a python code that scrapes data from a website
Using python code, a wikipedia page on olympic medals won by all competing nations was scraped.
This data was then 'wrangled' into a pandas data table and exported as a CSV file and uploaded to github.
Task: Construct a chart that supports or refutes an argument made at the Talking Economics panel event
At the talking Economics event, Dimitri Zenghelis said "China tends to achieve [on targets]".
The following graph supports this statement. In 1980, China implemented the one-child policy to curb their population growth.
We can see a large fall in the lead up to the policy implementation. However, this falls even further post-1980, up until 2015 when the policy was stopped.
Task: Build and embed a chart that uses statistical methods to test causality or distribution
Using python, the British Survey 2020 dataset is wrangled, and gives two variables of interest for each individual:
How much they like the Labour and Conservative party on a scale of strong dislike (0) to strong like (10)
Using Seaborn, this data is regressed to give a linear relationship between the two variables. In particular, Labour supporters are more likely to have a
stronger disliking of the other party then Conservative supporters.
Task: Embed two interactive charts
Both chart 17 and 18 make use of a tool tip to present further infomation when hovered over.
Chart 17 allows for the axis to be resized using the mouse wheel to zoom, and mouse clicking to move around the plane.
Chart 18 makes use of selection, greying out other country lines when a single line is selected by right clicking.