An SPA using data from the Open Data Government platform to make the numbers more understandable
https://covid19dataforbulgaria.web.app/
A breif explanation of each of the files with JS code can be found here
A constant is holding the needed DOM elements and each one is called as a function whenever it is needed.
The logic behind the Update Chart button can also be found here.
The code makes sure that all the needed prerequisits are selected - proper dates and data resourses.
As in the main resource, Open Data Portal, the data is being updated only once a day, here the program is making sure the data is being fetch only ance a day as well.
The app starts