Python program to make some plots with official italian covid and vaccine data
You can see an updated version of the graphs here
- Creates graph with official covid italian
spaghettidata.- Line plot with total cases, cured, active cases, stay at home people and deaths.
- Line plot with hospitalized patients and intensive care patients.
- Small line+bar plots. Line plots use total number and bar plots use day by day difference between data points. A pair of plots for all of the data types used above(+swabs).
- Plot with the percentage of daily positive swabs out ot all the swabs done that day.
- Line plot with first vaccine doses and seconda vaccine doses only.
- Bar plot with vaccines used per region.
- Horizontal bar plot with percentage of vaccinated people per region.
- Percentage of used vaccines out of distributed ones per region.
- Pie chart with vaccines suppliers.
- Fully adjustable output(and its location) through config.ini file.
- Checks if the downloaded data is updated before plotting. If it's not updated, waits 5 minutes and retries.
- Added new plots with vaccines data
- Removed european plots (problem with data formats and timings)
- Bug fixing
- Added a new plot with the percentage of daily positive swabs out ot all the swabs done that day
- Some bug fixing
- Added a new plot with the top 20 european(continent) countries by number of new cases.
- Improved performance a bit(still abysimal though).
- Now throws and exception if the config file is not read.
- Config settings now correctly used everywhere they should.
- Deletes old images so it won't fill your hdd.
- The program now checks if the data was updated before graphing. If it wasn't, it waits 5 minutes and tries again.
- Fixed a bug showing a label on y axis on some plots that shouldn't have been there.
- The code is now more OOP friendly, thanks to the Sample class.
- Fixed a bug that showed the grid on top of bar plots.
- Fixed alignment of data with indicators on the axis.
- Fixed a bug with the Output-images-to-Screen option in the config
- Save the downloaded JSON data as json file (editable with config.ini file).
- Enabled grid for all plots.
- Now X axis values are dates instead of numbers.
- Showing X axis values only every week, on mondays.
All data used is taken from Presidenza del Consiglio dei Ministri/COVID-19 and Italia/covid19-opendata-vaccini