Thanks for the advice regarding the graphs.
As a quick fix, I thought it might be easy to just call a perl cgi script to
produce my graph, such as the code shown below, but unfortunatly I don't think
this will work within Jetspeed as the setting of the header seems to be
ignored, thus resulting in Jetspeed trying to display the image as text.
I'm sure this could be resolved by having the below code in one file (e.g.
graph.cgi) and calling it from a different cgi file, using the syntax <img
src='graph.cgi'>
I'm having trouble testing this as I'm not sure how to correctly path to the
graph.cgi file which currently resides with my other cgi scripts in the
location /ApacheJetSpeed2.0/webapps/perl/WEB-INF/
Ideally, I'd like the graph.cgi script to remain in its current location so I
can use Jetspeed to control access to the file.
Any thoughts?
Regards
Dan
#!/usr/bin/perl -w
use strict;
use CGI;
use GD::Graph::pie;
my $cgi = CGI->new();
print $cgi->header( -type => "image/jpeg" );
my @data = ( ["Apache","IIS","Other"], [ 67.2, 21.0, 11.8] );
my $graph = new GD::Graph::pie( 250, 200 );
$graph->set( title => "Web server Usage, March 2004",
dclrs => [ qw( #D6D6FF #CECECE #FFFFFF ) ],
pie_height => 32,
start_angle => 90 );
print $graph->plot([EMAIL PROTECTED])->jpeg();
Hi,
i'm currently trying to create a portlet showing a graph generated from data
held within my database.
If anyone can recommend a way of producing various graphs within Jetspeed2,
I'd
appreciate the advice. My current thoughts are to use jsp chart creator.
Regards
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]