[rt-devel] Statistics Add-on for RT3

Jacob S. Barrett jbarrett at pogozone.com
Fri Aug 15 11:12:54 EDT 2003


Thanks.  I applied the patch that I extracted from that email.  Some of 
the lines got rejected, so I had to patch them up myself.  Unfortunately 
I am still seeing the line feed in the first byte of the image.  Any 
ideas.  Here is what my patched CallsQueueDay/Elements/Chart looks like:
---------------------------------------------
% $m->print($graph->plot(\@data)->$format());
% $m->abort();
<&|/l, $#data+1&>[_1] Elements</&>:<p>
% for (0..$#data) {
<% $data[$_] %><p>
% }
<%INIT>
use GD::Graph::lines;

my @data;
my $graph = GD::Graph::lines->new(400,300);
$graph->set(export_format => "png");

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>
------------------------------------------------

Thanks,
Jake

-- 
Jacob S. Barrett
Chief Technology Officer
PogoZone LLC

   email: jbarrett at pogozone.com
     web: www.pogozone.com
   voice: 360-676-8772
     fax: 360-733-3941
address: 114 W. Magnolia Street Suite 417
          Bellingham, Washington 98225




More information about the Rt-devel mailing list