开发者

How to have 2 graphs in one webpage (PERL)

I am completelyy new to perl and i am not sure if I开发者_StackOverflow社区'll phrase my question right so please reply if any clarification needed.

So I have a perl script that works just fine in plotting charts. The only issue is that I can only plot one chart at a time by commenting out the line that plots the other chart.

Both charts should be plotted on the same webpage. If this is impossible, then at least i could have the user choose a link to which chart they want to see first.. Go back.. Then choose the other link! Just a way to have both plots accessible...

Its hard to copy paste the code in since I am using command prompt to edit the script. I am currently using "SimpleErrorBars" to plot the first graph and "Chart::Points" to plot the other. Since the script is called from a webpage, I use "cgi_png()" to plot (i.e not plotting to an external image)

Is there a module to in perl to allow plotting multiple graphs on same webpage? Or any other suggestions??

Thank you in advance!


I don't understand why you don't have two separate graphs on the same page. As each graph is an image, just have two elements on the page, each of which calls a CGI program to generate one image.

<img src="/path/to/generate/first_graph.cgi?param1=something;param2=something_else/">
<img src="/path/to/generate/second_graph.cgi?param1=something;param2=something_else/">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜