Exactly! Then you could see which way countries are going, getting better of worse and by how much.
One other question, is there a location where I could get the same data for the US states? I'd like to be able to compare the various states and see how they are doing.
The problem with that is that there is "noise" in the data. So just comparing the delta between 2 successive days will mainly show "noise" instead of the real changes of the reproduction number.
E.g. for Belgium we jumped from 0.6 (yesterday) to 0.91 (today).
... but of course it is very easy to add this column:
In the change node: calculate reproduction rates,... you need to add following extra line after line 10:
The data set I am currently using also contains province/substate information (not about the US states ) which I am currently not showing. I am thinking about adding these records as well.
"Holy See" is Vatican (in Rome) - it has 12 reported cases and counts only 809 people that is why the total cases per million is so big. So that is not an error.
The 9999 reproduction number is explained when clicking on the INFO button:
I can confirm that I had the same initial problem on a new install of Node Red. Installed the ui-table node and dashboard and had the table missing. Restarted Node Red, still the same. Rebooted to get it all to display (table missing).
I thought it may have been me!
@janvda Thank you. I am also learning a lot about JSONata from this flow!
Sorry, should have made myself clearer. All running now.
From your original Flow, the Dashboard output didn't take at all, defined the Tabs etc, as they were blank in the output node, defined the outputs and 'refresh' box appeared but no table. Your second Flow followed shortly afterwards, it again just showed the 'refresh' box, but no table. From there I decided a Reboot might be required - that made it work.
Just seen a news headline, 'WHO worried about resurgence in Europe', but didn't name countries. Using the flow putting Austria as the selected country, all becomes apparent!!
New FEATURE : Statistics for the US States are added
To see them you have to click on the new button RETRIEVE US STATES.
Note that it takes a bit of time to display the statistics (about 12 sec on my intel-NUC - most likely on a raspberry pi it will take a bit longer).
@janvda Jan, thank you this makes it much easite to see what is going on over here. It's nice to see my state (Massachusetts has one of the lowest RN numbers today, hopefully it will keep going lower)
Ok, here is my weird issue for the week. Running NR on a Mac and using Safari to look at the dashboard. When I first display the dashboard it looks like this:
new cases are reported in several Chinese provinces in the last 2-3 weeks.
... despite this the number of cases per day per million is extremely low (if we ignore Hong Kong, then Beijing has reported the highest number = 0.55 cases/day/million)
... after new cases are reported, the reproduction rate is going down very rapidly.
ANOTHER FEATURE: "minimum population" dropdown button added.
If you only want to see data for countries / states having a certain minimal population you can do that by setting the dropdown button and then clicking on the "RETRIEVE COUNTRIES" or "RETRIEVE US STATES" button.
If you select >=0 then it will show all countries/states/provinces: including those for which the population is not specified.