ChartWriter(3)

NAME
Lire::ReportParser::ChartWriter - Lire::ReportParser processor that generate charts for all available subreport.

SYNOPSIS
    use Lire::ReportParser::ChartWriter;
    my $parser = new Lire::ReportParser::ChartWriter( format => "png" );
    eval { $parser->parsefile( "report.xml" ) };
    print "Parse failed: $@" if $@;

DESCRIPTION
This is a Lire::ReportParser processor which will generate charts for every table that has the "charttype" attribute set. It outputs on STDOUT a copy of the XML report with the appropriate "image" and "file" elements added.

Its constructor takes the following parameters:

format
    Selects the format of the charts. This can be one of "png", "jpg" or "gif". Defaults to "png". The GD(3pm) module must support the requested format.

outputdir
    The directory where the charts will be created. Defaults to ..

number_of_y_ticks
    The number of ticks that should appear on the y axis. Defaults to 5.

graph_height
    The height of the chart in pixels. Defaults to 300.

graph_width
    The width of the chart in pixels. Defaults to 400.

max_label_length
    The number of characters that should be kept from "name" elements. Defaults to 20.

SEE ALSO
Lire::ReportParser(3pm) GD::Graph(3pm)

VERSION
$Id: ChartWriter.pm,v 1.9 2002/07/28 19:29:17 flacoste Exp $

COPYRIGHT
Copyright (C) 2001-2002 Stichting LogReport Foundation LogReport@LogReport.org

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.

AUTHOR
Francis J. Lacoste <flacoste@logreport.org>