[freeside-commits] freeside/rt/html/RTx/Statistics/Resolution/Elements Chart, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Wed Jun 20 15:28:29 PDT 2007
Update of /home/cvs/cvsroot/freeside/rt/html/RTx/Statistics/Resolution/Elements
In directory wavetail:/tmp/cvs-serv10214/rt/html/RTx/Statistics/Resolution/Elements
Added Files:
Chart
Log Message:
integrate RTx::Statistics package, part of merging spiritone RT changes (#1661)
--- NEW FILE: Chart ---
<%perl>
$r->content_type("image/$format");
print $graph->plot(\@data)->$format();
$m->abort();
print $#data+1 . " Elements:<p>";
for (0..$#data) {
print $data[$_];
print "<p>";
}
</%perl>
<%INIT>
use GD::Graph::lines;
my @data;
my $graph = GD::Graph::lines->new($Statistics::GraphWidth,$Statistics::GraphHeight);
$graph->set(export_format => "png",
x_label => 'Days',
y_label => 'Average time in Days');
push @data, [split /,/ , $ARGS{x_labels}];
push @data, [split /,/ , $ARGS{data1}];
push @data, [split /,/ , $ARGS{data2}];
push @data, [split /,/ , $ARGS{data3}];
my $format = $graph->export_format;
#$r->content_type("image/$format");
</%INIT>
<%ARGS>
</%ARGS>
More information about the freeside-commits
mailing list