Closed ChrisWeldon closed 4 years ago
Thank you @ChrisWeldon for all the work. There were a lot of issues in your code. Mentioning country name still ran this and the sort validation wasn't working right, and then the spinner didn't stop at the right time. I just fixed those so going to accept the PR though I encourage you to check out what I changed.
Fixing this in #95 including your commits.
Added
states
command to parameters of getBar.js for bar charts comparing states.corona states --bar
The formatting of barRegions (formerly barCountries) got a little messy because the API returns the data in a different schema for states compared to countries:
'state'
for states and'country'
'recovered'
stats in the response data for states, so I used cases - deaths - active instead.