Mitch has asked for the wisdom of the Perl Monks concerning the following question:
the output prompts me to open or save the file. I guess it doesn't know where to return the output. Any ideas on how I can tell it to output to the current window or why it's trying to output as a file?window.open("pie.pl?$passstring", "window name", "width=650,height=650 +")
use GD::Graph::pie(350,350); @data=([@name], [@value]); $graph = new GD::Graph::pie; $graph->set( title => "$title", label => 'Label Goes Here', axislabelclr => 'black', '3d' => 1, start_angle => 90, suppress_angle => 5) or warn $graph->error; $graph->set_title_font(GD::Font->MediumBold); $graph->set_value_font(GD::Font->Small); $format=$graph->export_format; print header("image/$format"); binmode STDOUT; print $graph->plot(\@data)->$format() or die $graph->error;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GD::Graph New Window
by AcidHawk (Vicar) on Jul 22, 2003 at 07:01 UTC | |
by Mitch (Sexton) on Jul 22, 2003 at 14:05 UTC |