NAME

Text::BarGraph - Text Bar graph generator

SYNOPSIS

use Text::BarGraph;

DESCRIPTION

This module takes as input a hash, where the keys are labels for bars on a graph and the values are the magnitudes of those bars.

USAGE

$g = Text::BarGraph->new();

%hash = ( alpha => 30, beta => 40, gamma => 25 );

print $g->graph(\%hash);

OPTIONS

There are several options available to determine how the data is graphed. After creating an object $g, you can set an option by entering:

$g->{'option_name'} = "value";

The options (and default values) that are available are:

dot     =>      "#",    # character to graph with
num     =>      undef,  # display data value in ()'s
color	  =>	  undef,  # whether or not to color the graph
sort    =>      "key",  # key or data
zero    =>      0,      # value to start the graph with
max_data =>     0, 	  # where to end the graph
autozero =>     undef,  # automatically set start value
autosize =>     undef,  # requires Term::ReadKey
xsize   =>      80,     # columns

AUTHOR

Kirk Baucom <kbaucom@schizoid.com>

COPYRIGHT

Copyright (c) 2001 Kirk Baucom. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.