NAME
Image::BoxModel::Chart::Data - Data manipulation an analysis methods for Image::BoxModel::Chart
SYNOPSIS
For an example and general information see Image::BoxModel::Chart.pm
DESCRIPTION
Image::BoxModel::Chart::Data implements methods for data manipulation and analysis.
Methods
ArrayHeighestLowest
($highest, $lowest) = $image-> ArrayHeighestLowest(@array)
Feed it an array and get the highest and the lowest value of it.
ArrayHighestWidest
($highest_text_size, $widest_text_size) = ArrayHighestWidest(values => [@values], textsize => $textsize, rotate => $rotate in degrees)
Feed it an array of numbers or text and get how much space the largest value needs.
ExpandToGrid
$value_on_grid = $image -> ExpandToGrid (value => $value, skip => $skip, base_line => $base_line);
BuildScaleArray
my @scale_annotations = BuildScaleArray(lowest => $p{lowest}, highest => $p{highest}, base_line => $p{base_line}, skip => $p{scale_skip});