How to display chart in .jsp page

R

Robert M. Gary

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
 
A

Andrew Thompson

Robert said:
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
 
R

Roedy Green

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top