Subject: | Warnings in Stacked Bar chart |
When graphing a sparse data-set where domain keys do not fully overlap
warnings are thrown. This suppresses the warnings.
***
/usr/local/lib/perl5/site_perl/5.10.1/Chart/Clicker/Renderer/StackedBar.pm.orig
2010-05-06 09:18:12.000000000 -0400
---
/usr/local/lib/perl5/site_perl/5.10.1/Chart/Clicker/Renderer/StackedBar.pm
2010-05-06 09:19:04.000000000 -0400
***************
*** 98,104 ****
my $val = 0;
for my $j (0 .. $#values) {
! $val += $values[$j];
my $y = $range->mark($height, $val);
next unless defined($y);
--- 98,104 ----
my $val = 0;
for my $j (0 .. $#values) {
! $val += $values[$j] if (defined $values[$j]);
my $y = $range->mark($height, $val);
next unless defined($y);