NAME
Image::BoxModel::Chart - Charts using Image::BoxModel (Incomplete)
SYNOPSIS
use Image::BoxModel::Chart;
my $image = new Image::BoxModel::Chart (
width => 800,
height => 400,
lib=> "IM", #[IM|GD]
);
print $image -> Annotate (text=> 'Hello naked BarChart', padding_top=>10, padding_bottom=> 20, background => "white");
print $image -> Annotate (text => "happiness", textsize => 14, box_position => "left", rotate=>-90, padding_right => "10", text_position => "Center");
$image -> ChartBars (values => [1,5,3,10,-10]);
$image -> Save(file=> "20_chart_bars_naked_$image->{lib}.png");
DESCRIPTION
Image::BoxModel::Chart will implement different sorts of charts.
bars, points, stapled points, lines; all vertically and horizontally
The development is quite slow, so if you wish to see something implemented, get the source and feel free to contribute. Or consider sponsoring. :-)
Completeness is more important here than a fast implementation.
Methods
ChartBars
$image -> ChartBars(values => \@values|[value1, value2, value3...] scale_skip
Draw naked bars on an empty box.
Chart
Incomplete! Don't use!
It fights the problem from outside an will be cutting boxes for axis-annotations, ticks and so on. I will first fight from the inside and do the "naked" charts. Afterwards I will come back and fix this.
Internal methods
preset_defaults
Sets many standard values so that the user does not need to specify them. Serves as a source of information if you want to know the possibilities..
While this changes more often than it remains the same, please see the source! I will add the pod as soon as the interface is more or less stable.