DataPlotly plugin allows to use real data to study the numerical distribution of some variables.
After loading the data in QGIS we have 2 layers to work with:
a flat table named
covid_table that contains time data for each country:
we have repetitive rows for each country depending on the data:
a spatial polygon layer that represents the whole world with the columns of
Cases and the
DateTime of the last available day (a python
script is downloading and shaping the data automatically every day):
We can use the first non spatial table to filter only one single country, e.g.
Italy with the
Feature Subset button and adding the filter as
"Entity" = 'Italy':
We can then check the
Show Range Slider in the
Advanced Configuration tab
to add a nice time range slider to the bottom of the plot:
Finally let's create the first plot of the filtered values of Italy using
DateTime as X values and
Deaths as Y values. We don't want single points for
each day, to choose
Lines as the
Now let's overlap on the same plot also the
Cases trend. Just repeat the
previous step changing the Y value to
Cases and changing also the color.
Finally click on
You will end up with two overlapped plots:
Download the project from our server.