https://github.com/jez/barchart
📊 Print a bar chart from the command line
https://github.com/jez/barchart
cli
Last synced: about 1 year ago
JSON representation
📊 Print a bar chart from the command line
- Host: GitHub
- URL: https://github.com/jez/barchart
- Owner: jez
- License: mit
- Created: 2019-10-28T03:33:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T21:47:09.000Z (about 4 years ago)
- Last Synced: 2025-03-27T00:11:05.931Z (over 1 year ago)
- Topics: cli
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# barchart
Print a bar chart from the command line.
## Usage
```
❯ cat data.txt
40 label 1
9 label 2
31 something else
❯ barchart data.txt
label 1 40 █████████████████████████████████████████████████████████████
label 2 9 ██████████████
something else 31 ███████████████████████████████████████████████
```
Can also read data from stdin. See `barchart --help` for full options.
## Install
From source:
```
cargo install --git https://github.com/jez/barchart.git
```
Precompiled binaries: download from the Releases page, then unzip and put on
your PATH.
## License
[](https://jez.io/MIT-LICENSE.txt)
Attribution:
This tool is a Rust port of [jstrace/bars](https://github.com/jstrace/bars),
which is also MIT licensed.