An open API service indexing awesome lists of open source software.

https://github.com/tool3/chartscii-cli

📊 create bar charts in your terminal
https://github.com/tool3/chartscii-cli

ascii-chart cli javascript npm-package

Last synced: about 1 year ago
JSON representation

📊 create bar charts in your terminal

Awesome Lists containing this project

README

          

# chartscii cli
a companion cli for `chartscii`

# install
```bash
npm i chartscii-cli -g
```

# npx
```bash
npx chartscii-cli create 1 2 3 4 5 6 7 8 9 10
```

```text
1 ╢█████
2 ╢██████████
3 ╢███████████████
4 ╢████████████████████
5 ╢█████████████████████████
6 ╢██████████████████████████████
7 ╢███████████████████████████████████
8 ╢████████████████████████████████████████
9 ╢█████████████████████████████████████████████
10 ╢██████████████████████████████████████████████████
╚══════════════════════════════════════════════════
```

```bash
npx chartscii-cli create 1 2 3 4 5 6 7 8 9 10 -e vertical
```

```text
║ █
║ █
║ █ █
║ █ █
║ █ █ █
║ █ █ █
║ █ █ █ █
║ █ █ █ █
║ █ █ █ █ █
║ █ █ █ █ █
║ █ █ █ █ █ █
║ █ █ █ █ █ █
║ █ █ █ █ █ █ █
║ █ █ █ █ █ █ █
║ █ █ █ █ █ █ █ █
║ █ █ █ █ █ █ █ █
║ █ █ █ █ █ █ █ █ █
║ █ █ █ █ █ █ █ █ █
║█ █ █ █ █ █ █ █ █ █
║█ █ █ █ █ █ █ █ █ █
╚══════════════════════════════════════════════
1 2 3 4 5 6 7 8 9 10
```

```bash
npx chartscii-cli create $(jot -r 10 1000 2000) -w 300 -g '░'
```
```text
1303 ╢█████████████████████████░░░░░░░░░░░░░
1751 ╢█████████████████████████████████░░░░░
1404 ╢██████████████████████████░░░░░░░░░░░░
1896 ╢████████████████████████████████████░░
1452 ╢███████████████████████████░░░░░░░░░░░
1658 ╢███████████████████████████████░░░░░░░
1988 ╢█████████████████████████████████████░
1993 ╢██████████████████████████████████████
1118 ╢█████████████████████░░░░░░░░░░░░░░░░░
1344 ╢█████████████████████████░░░░░░░░░░░░░
╚══════════════════════════════════════
```

# usage
see available chart options in [`chartscii`](https://github.com/tool3/chartscii#chart-options)

# example
```bash
chartscii create -f example.json -t 'Weekly coding stats' -o -n -g "░" -k pastel
```

```text
Weekly coding stats
Bash (3.3%) ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
JSON (0.8%) █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
YAML (4.7%) ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
HTML (5.3%) ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
TypeScript (5.7%) ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Markdown (11.8%) ████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
JavaScript (68.3%) ████████████████████████████████████████████
```