How can I display a dynamic X-Y chart on my web page that changes based
on user input? Is there a way I can return something via a servlet? Are
there any freeware JChart classes that I could push through a servlet?
-Robert
Andrew Thompson - 05 Nov 2005 00:22 GMT
> How can I display a dynamic X-Y chart on my web page that changes based
> on user input? Is there a way I can return something via a servlet? Are
> there any freeware JChart classes
JFreeChart (for example)
>.. that I could push through a servlet?
Into an (J)Applet, yes.
HTH
Roedy Green - 05 Nov 2005 11:21 GMT
>How can I display a dynamic X-Y chart on my web page that changes based
>on user input? Is there a way I can return something via a servlet? Are
>there any freeware JChart classes that I could push through a servlet?
It might be easier to pump the raw data to an Applet that does the
chart using any of the tools at http://mindprod.com/jgloss/graph.html
You could do that with a DataOutputStream.
The only other way I can think of doing it is to dynamically construct
a png image. That would be a heavy cpu load on the server, and a heavy
load to transmit. see http://mindprod.com/jgloss/imageio.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.