Graphics::Magick is now the standard graphics package in WebGUI, but
Image::Magick will be supported for backwards compatibility. See gotcha.txt for details.
This commit is contained in:
parent
168ba28ccf
commit
bde1a7a941
6 changed files with 55 additions and 10 deletions
|
|
@ -1118,8 +1118,8 @@ sub processDataset {
|
|||
}
|
||||
|
||||
my $dataIndex = 0;
|
||||
|
||||
my $stepsize = ($self->getTopHeight + $self->getBottomHeight) / scalar(@{$self->getDataset});
|
||||
my $divisor = scalar(@{$self->getDataset}) || 1; # avoid division by zero
|
||||
my $stepsize = ($self->getTopHeight + $self->getBottomHeight) / $divisor;
|
||||
foreach (@{$self->getDataset}) {
|
||||
$self->addSlice({
|
||||
percentage => $_ / $total,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue