Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

(jeffa) Re: Question about using hash indexes with GD::Graph

by jeffa (Bishop)
on Mar 20, 2001 at 20:25 UTC ( [id://65720] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my (@h,@c);
    push @h, $_->{hour} foreach(@{$data});   # no so great
    ...
    my $new = [ \@h, \@c ];
    
    $gd = $graph->plot($new);                # wrong - see orbital's comme
    +nt
    
  2. or download this
    BEFORE:                          AFTER:
    $VAR1 = [                        $VAR1 = [
    ...
                'hour' => 2                  ];
              }
            ];