Skip to content

Commit 6d5b21a

Browse files
committed
📦 NEW: Charts
1 parent e3c67e5 commit 6d5b21a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/charts.gif

565 KB
Loading

readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Track the Coronavirus disease (COVID-19) or the Novel Coronavirus Strain.
1919
- 🤯 Active daily reporting of your country's COVID-19 statistics
2020
- 🇺🇸 Get US States data for Coronavirus disease reports across the US
2121
- 🗃️ Data: Country, Cases, Deaths, Recovered, Active, Critical, Per Million
22+
- 📈 Charts: Plot statistics in the for of line charts both regular and logarithmic
2223
- 📟 Sort: `cases`, `cases-today`, `deaths`, `deaths-today`, `recovered`, `active`, `critical`, `per-million`
2324

2425
<br>
@@ -125,6 +126,20 @@ corona --minimal
125126
corona -m
126127
````
127128

129+
[![📟](./.github/charts.gif)](./../../)
130+
131+
### Charts: Regular & Logarithmic
132+
133+
```sh
134+
# Print a country line chart.
135+
corona usa --chart
136+
corona usa --c
137+
138+
# Print a country line chart with logarithmic data.
139+
corona china --chart --log
140+
corona china -c -g
141+
```
142+
128143
#### CLI Help
129144

130145
```sh

utils/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ module.exports = meow(
6161
},
6262
log: {
6363
type: 'boolean',
64-
default: false
64+
default: false,
65+
alias: 'g'
6566
},
6667
minimal: {
6768
type: 'boolean',

0 commit comments

Comments
 (0)