in reply to Multiple GD::graphs in one web page?

I'm trying to write some graphs on the fly throw a cgi and I can't make it print more then one graph.

You can't expect to slam the bits for two different images together and have a browser see the resulting bits as two images. The image formats just don't work that way. You can, as Beatnik suggests above, use GD to construct a (single) larger image out of multiple smaller images.

An alternative is to invoke your CGI twice from within an HTML wrapper, producing a different graph for each invocation. Unless both graphs involve a complicated derived dataset, I would think that producing one graph per CGI invocation would be simpler.

  • Comment on Re: Multiple GD::graphs in one web page?

Replies are listed 'Best First'.
Re^2: Multiple GD::graphs in one web page?
by Anonymous Monk on Jun 16, 2011 at 19:30 UTC
    I know this is a reallyyyy old post but how would you do that ---> (use GD to construct a (single) larger image out of multiple smaller images)