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

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

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

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](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.