Created by: avnish-choudhary
Currently users have to go through the graphs below carefully to understand the trends.
The current situation is best described not by the total no of new cases but by checking improvement or worsening in the count of new cases arising daily.
The total no is going to rise but it is important that at some point of time the no of new cases arising daily reduce... Negative rate gives Hope
hence shown in Green
where as positive rate will create awareness for people to take caution seriously hence shown in Red
.
It is the daily change numbers that should influence media analyst and concerned people visiting the website.
Hence seperate section is added for Comparison between past 4 days data and showing rate of new cases.
As per the discussions on https://github.com/covid19india/covid19india-react/issues/317 This feature is desired among the visitors. @jeremyphilemon @someshkar
I have tested this code on local including negative rate as well as positive rate with change in dates.
Today's data is shown in blue as it can't be classified as Green
or Red
until end of day.