Imager::Graph

Perl extension for producing Graphs using the Imager library
Download

Imager::Graph Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tony Cook
  • Publisher web site:
  • http://search.cpan.org/~tonyc/

Imager::Graph Tags


Imager::Graph Description

Perl extension for producing Graphs using the Imager library Imager::Graph is a Perl module that provides style information to its base classes. It defines the colors, text display information and fills based on both built-in styles and modifications supplied by the user to the draw() method.newThis is a simple constructor. No parameters required.set_graph_size($size)Sets the size of the graph (in pixels) within the image. The size of the image defaults to 1.5 * $graph_size.set_image_width($width)Sets the width of the image in pixels.set_image_height($height) Sets the height of the image in pixels.add_data_series(, 'Series Name');Adds a data series to the graph. For Imager::Graph::Pie, only one data series can be added.set_labels()Labels the specific data points. For line/bar graphs, this is the x-axis. For pie graphs, it is the label for the wedges.set_title($title)Sets the title of the graph. Requires setting a font.set_font($font)Sets the font to use for text. Takes an Imager::Font object.set_style($style_name)Sets the style to be used for the graph. Imager::Graph comes with several pre-defined styles: fount_lin (default), fount_rad, mono, primary_red, and primary.errorReturns an error message. Only valid if the draw() method returns false.drawCreates a new image, draws the chart onto that image and returns it.SYNOPSIS use Imager::Graph::Sub_class; my $chart = Imager::Graph::Sub_class->new; my $img = $chart->draw(data=> @data, ...) or die $chart->error; Requirements: · Perl


Imager::Graph Related Software