NAME

Bionanny::Report::graphs - creating graphs from Bionanny data


SYNOPSIS

Do not use this object directly, it is recommended to access it and use it only through the the Bionanny::Report manpage module:

  use Bionanny::Listener;
  use Bionanny::Report;
  my $listener = new Bionanny::Listener;
  my $reporter = new Bionanny::Report (-report => 'graphs',
                                       -format => 'png',
                                       -data   => $listener->get);
  my $png_image = $reporter->report;


DESCRIPTION

It converts Bionanny monitoring data from the native XML format (the format provided by a Bionanny monitoring service) to an image containing a graph showing usage of Bionanny services.

Otherwise see the Bionanny::Report manpage and GD::Graph.


SEE ALSO

http://www.bionanny.org


AUTHOR

Martin Senger (support@bionanny.org)


COPYRIGHT

This file is a component of the Bionanny project. Copyright Michael Niemi & Martin Senger. For details contact support@bionanny.org, or see http://www.bionanny.org/.

Parts were re-factored from modules available in Bioperl project. See copyright notices there.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


DISCLAIMER

This software is provided ``as is'' without warranty of any kind.


METHODS

new

Additionally to the arguments recognized by the the Bionanny::Report manpage, this class understands also:

-format => 'png'

It specifies the format of the created image.

-gattrs =>

It allows to specify additional attributes that are directly passed to the underlying GD::Graph engine (therefore you need to read its manual to see what attributes are possible and what they mean). These user-defined attributes are given all in one string separated by = or whitespaces, unless escaped, or in quoted string. For example:

  title='one and two' x_label = "Mark's numbers"