Text::BarGraph is a Perl bar chart generation library for terminal, it can produce a chart like:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimLgCsNSUHg5FNjDQnn0l8o-a8BzuTJZwlyDA63c3B0I1-cvkTAEAAo25x1CUignOhDc44xivXKpeNxLnDJIDwQo2BjF0qP1nPe1jFVytzkxpk3csjzgo5g8iMuInCe-cExwltzDOVemI/s640/2014-04-08--10%253A02%253A48.png

Using data as follows:

my %data = (
  alpha => 300,
  beta  => 400,
  gamma => 220,
  delta => 350,
);

Colors, bar character, number display, sorting method, width, etc, can all be changed. It can also adopt the terminal width using TermReadKey library, also using Term::ANSIColor for coloring instead of raw escape codes if the library is available to it.

Text::BarGraph is written by Kirk Baucom, et al., under Artistic License, currently version 1.1 (2011-03-30).