Skip to content

Commit b8cee57

Browse files
committed
📖 DOC: Bars
1 parent 73432df commit b8cee57

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/bars.gif

662 KB
Loading

readme.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,25 @@ corona -s active -r
114114

115115
[![📟](./.github/sort.gif)](./../../)
116116

117-
### Charts: Regular & Logarithmic
117+
### Bar Charts
118+
119+
```sh
120+
# Print bar charts for max 10 countries.
121+
corona --bar
122+
corona -b
123+
124+
# Print bar charts for top 5 countries w.r.t deaths.
125+
corona --bar --sort deaths --limit 5
126+
corona -b -s deaths -l 5
127+
128+
# Print bar charts countries w.r.t recovered cases.
129+
corona --bar --sort recovered
130+
corona -b -s recovered
131+
```
132+
133+
[![📟](./.github/bars.gif)](./../../)
134+
135+
### Line Charts: Regular & Logarithmic
118136

119137
```sh
120138
# Print a country line chart.

utils/getBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = async (
3333
);
3434

3535
// Limit.
36-
limit = limit > 12 ? 12 : limit;
36+
limit = limit > 10 ? 10 : limit;
3737
allCountries = allCountries.slice(0, limit);
3838

3939
let logScale = x => x;

0 commit comments

Comments
 (0)