Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

GD::Graph legend only shows 1 entry

by bageler (Hermit)
on Oct 28, 2005 at 21:55 UTC ( [id://503785]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my (@data,$totalvotes,@legend,$i);
        while (my @r = $sth->fetchrow) {
    ...
                $_ = int(($_ / $totalvotes) * 100).'%';
            }
        }
    
  2. or download this
        my $graph = GD::Graph::hbars->new(300,70*$#{$data[0]});
        $graph->set (
    ...
        $graph->set_legend(@legend);
    
        my $gd = $graph->plot(\@data) or warn $graph->error;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://503785]
Approved by socketdave
Front-paged by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found