Skip to content

Commit c3fa367

Browse files
authored
Merge pull request #13 from ianvizarra/dev
Updated Readme & Reduced History Chart Height
2 parents d1c9974 + 49bbae6 commit c3fa367

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ This simple application offers you the following features...
3030
* Simple layout and easy to understand.
3131
* By country query.
3232
* e.g. (```/country```).
33+
* By country with History Chart
34+
* e.g. (```/history/<country>/``` or append with ```<cases or deaths>```)
3335
* Windows CMD support.
3436
* e.g. (```/cmd``` or ```/cmd/country```).
3537
* Plain or Basic version.
@@ -72,6 +74,22 @@ curl https://covid19tracker.xyz/philippines
7274
curl https://covid19tracker.xyz/ph
7375
```
7476

77+
#### Country with History Chart
78+
```/history/<country>/``` or append with ```<cases or deaths>```
79+
80+
81+
```bash
82+
curl https://covid19tracker.xyz/history/ph
83+
```
84+
85+
```bash
86+
curl https://covid19tracker.xyz/history/ph/cases
87+
```
88+
89+
```bash
90+
curl https://covid19tracker.xyz/history/ph/deaths
91+
```
92+
7593
## Official Blog
7694

7795
Many people asking me how to properly use my tracker. Here's the blog on [How to Track Coronavirus on Command Line](https://warengonza.ga/covid19-tracker-cli).

lib/cli/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const chart = require('asciichart');
33
// generate chart for caes or deaths
44
exports.generate = (data, type = 'cases') => {
55
const config = {
6-
height: 12,
6+
height: 7,
77
format: (x, i) => (' ' + x.toFixed(0)).slice(-' '.length)
88
};
99
chartData = Object.values(data.timeline[type]).flat();

0 commit comments

Comments
 (0)