Created by: shubhamjain2998
Description of PR
Added relevant statistics like -
- Confirmed case percent of the total population (its shown correct to four decimal places as some states have a very low number of cases, rounding off to two decimal places will result in 0).
- Active, recovered, and mortality rate correct to two decimal places.
- Cases per million and test per million.
- Positive Test rate as received in the API, and will show 'N/A' if data is not available.
- Doubling Rate, as calculated from the growth rate of the last 7 days.
To implement this section I added two files -
- StateStats.json - containing a population of all states in JSON format, population numbers are referenced from here. Link
- detailStats.js - A Separate Component to display the statistics section.
Relevant Issues
Fixes #1456 (closed)
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone
Screenshots