---
title: 'Use Cases'
url: 'https://www.faunalia.eu/en/dev/dataplotly/use_cases'
markdown: 'https://www.faunalia.eu/en/dev/dataplotly/use_cases.md'
lang: en
date: '2025-04-14'
description: 'DataPlotly real life use cases'
taxonomy:
  archives_month:
    - apr_2025
  archives_year:
    - '2025'
---

# DataPlotly plugin real life use cases

DataPlotly plugin allows to use real data to study the numerical distribution of some variables.

## COVID-19

Covid-19 pandemic is unfortunately well known in the whole world. Thanks to [ourworldindata.org](https://ourworldindata.org/coronavirus) and the [John Hopkins University](https://github.com/CSSEGISandData/COVID-19) we have real data to study the pandemic spreading.

### Working in QGIS

After loading the data in QGIS we have 2 layers to work with:

1. a *flat* table named `covid_table` that contains time data for each country: we have repetitive rows for each country depending on the data:

    ![Covid flat table extract](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/covid_flta_table.png)
2. a spatial polygon layer that represents the whole world with the columns of `Deaths`, `Cases` and the `DateTime` of the last available day (a python script is downloading and shaping the data automatically every day):

    ![World view](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/ne_data.png)

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'`:

![Feature Subset](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/dp_feature_subset.png)

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:

![Range Slider](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/dp_range_slider.png)

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 `Marker Type`:

![Deaths Plot](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/dp_deaths_plot.png)

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 `Create Plot`:

![Cases Plot set up](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/dp_cases_plot.png)

You will end up with two overlapped plots:

![Deaths and Cases Plot](https://www.faunalia.eu/user/pages/02.dev/02.dataplotly/01.use_cases/img/dp_deaths_cases_plot.png)

Download the project from [our server](https://faunalia.eu/covid.gpkg).

---

## Navigation

- Parent: [DataPlotly](https://www.faunalia.eu/en/dev/dataplotly.md)
