Skip to content

arturoherrero/bart

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 

bart

Print bar graphs in your shell.

bart takes a list of data and plots a chart with rectangular horizontal bars with lengths proportional to the values represented.

Installation

Clone this repository:

$ git clone git@github.com:arturoherrero/bart.git

Add bart/bin/ to your PATH:

$ echo 'export PATH="${PATH}:path/to/bart/bin"' >> ~/.bash_profile

Source your profile:

$ source ~/.bash_profile

OS X

$ brew tap arturoherrero/formulae
$ brew install bart

Usage

Just run bart and pass it a list of pair number of arguments (space-delimited), the label and the value. It's designed to be used in conjunction with other scripts that can output in that format.

$ bart 2013 10 2014 60 2015 29 2016 0 2017 3
2013: ██████████ 10
2014: ████████████████████████████████████████████████████████████ 60
2015: █████████████████████████████ 29
2016: | 0
2017: ███ 3

$ echo Gin 30 Vermouth 20 Lemon 20 Syrup 10 | bart
Gin:      ██████████████████████████████ 30
Vermouth: ████████████████████ 20
Lemon:    ████████████████████ 20
Syrup:    ██████████ 10

BTW, you can learn more about Cocktails for Programmers.

Who made this?

This was made by Arturo Herrero under the MIT License. Find me on Twitter @ArturoHerrero.

About

Print bar graphs in your shell. $ bart: ██████████ 100

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages