Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ This simple application offers you the following features...
* Simple layout and easy to understand.
* By country query.
* e.g. (```/country```).
* By country with History Chart
* e.g. (```/history/<country>/``` or append with ```<cases or deaths>```)
* Windows CMD support.
* e.g. (```/cmd``` or ```/cmd/country```).
* Plain or Basic version.
Expand Down Expand Up @@ -72,6 +74,22 @@ curl https://covid19tracker.xyz/philippines
curl https://covid19tracker.xyz/ph
```

#### Country with History Chart
```/history/<country>/``` or append with ```<cases or deaths>```


```bash
curl https://covid19tracker.xyz/history/ph
```

```bash
curl https://covid19tracker.xyz/history/ph/cases
```

```bash
curl https://covid19tracker.xyz/history/ph/deaths
```

## Official Blog

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).
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const chart = require('asciichart');
// generate chart for caes or deaths
exports.generate = (data, type = 'cases') => {
const config = {
height: 12,
height: 7,
format: (x, i) => (' ' + x.toFixed(0)).slice(-' '.length)
};
chartData = Object.values(data.timeline[type]).flat();
Expand Down