Help for this page

Select Code to Download


  1. or download this
    use DBI;
    # do DBI things, like connecting to the database, statement
    ...
    
    my $chart = GD::Graph::bars->new();
    my $gd = $chart->plot($data);
    
  2. or download this
    use GD::Graph::Data;
    use GD::Graph::bars;
    ...
    while (@row = $sth->fetchrow_array) {
        $data->add_point(@row);
    }