Chart-Strip
view release on metacpan or search on metacpan
Should a border be drawn around the edge of the image?
=item C<draw_tic_labels>
Should value labels be shown?
=item C<draw_data_labels>
Should each data set be labeled?
=item C<transparent>
Should the background be transparent?
=item C<grid_on_top>
Should the grid be drawn over the data (1) or below the data (0)?
=item C<binary>
Use powers of 2 instead of powers of 10 for the y axis labels.
=item C<data_label_style>
my $me = bless {
width => 640,
height => 192,
margin_left => 8,
margin_bottom => 8,
margin_right => 8,
margin_top => 8,
n_y_tics => 4, # aprox.
transparent => 1,
grid_on_top => 1,
draw_grid => 1,
draw_border => 1,
draw_tic_labels => 1,
draw_data_labels => 1,
limit_factor => 0,
data_label_style => 'text', # or 'box'
thickness => 1,
tm_time => \&POSIX::localtime, # or gmtime, or...
shadow_color => '#CCCCCC',
$me->{color}{black} = $im->colorAllocate(0,0,0);
$me->{color}{blue} = $im->colorAllocate(0, 0, 255);
$me->{color}{red} = $im->colorAllocate(255, 0, 0);
$me->{color}{green} = $im->colorAllocate(0, 255, 0);
$me->{color}{gray} = $im->colorAllocate(128, 128, 128);
# style for grid lines
$im->setStyle(gdTransparent, $me->{color}{gray}, gdTransparent, gdTransparent);
$im->interlaced('true');
$im->transparent($me->{color}{white})
if $me->{transparent};
$im->filledRectangle( 0, 0, $me->{width}-1, $me->{height}-1, ($bkg || $me->{color}{white}));
my $bc = $me->{border_color} ? $me->img_color($me->{border_color}) : $me->{color}{black};
$im->rectangle(0, 0, $me->{width}-1, $me->{height}-1, $bc )
if $me->{draw_border};
$me;
}
( run in 0.550 second using v1.01-cache-2.11-cpan-0a6323c29d9 )