Text::BarGraph is a Perl bar chart generation library for terminal, it can produce a chart like:
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).
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.