-
-
12 May 2015 08:41:33 UTC
- Distribution: Imager-Graph
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone git repository
- Issues (18)
- Testers (950 / 0 / 0)
- Kwalitee
Bus factor: 1- 81.59% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (257.03KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Imager
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Imager::Graph::Bar - a tool for drawing bar charts on Imager images
SYNOPSIS
use Imager::Graph::Bar; use Imager::Font; my $font = Imager::Font->new(file => '/path/to/font.ttf') || die "Error: $!"; my $graph = Imager::Graph::Bar->new(); $graph->set_image_width(900); $graph->set_image_height(600); $graph->set_font($font); $graph->use_automatic_axis(); $graph->show_legend(); my @data = (1, 2, 3, 5, 7, 11); my @labels = qw(one two three five seven eleven); $graph->add_data_series(\@data, 'Primes'); $graph->set_labels(\@labels); my $img = $graph->draw() || die $graph->error; $img->write(file => 'bars.png');
Module Install Instructions
To install Imager::Graph, copy and paste the appropriate command in to your terminal.
cpanm Imager::Graph
perl -MCPAN -e shell install Imager::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.