ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). To chat: https://twitter.com/MrAhmadAwais/
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

📦 NEW: States bar #93

Closed ChrisWeldon closed 4 years ago

ChrisWeldon commented 4 years ago

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:

ahmadawais commented 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.

ahmadawais commented 4 years ago

Fixing this in #95 including your commits.