Vivek
Vivek

Reputation: 1461

Realtime graph using JFreeChart and displaying in JSP

I'm trying to plot the system CPU utilization in a JSP page.

I'm using JFreeChart library to do so, I have a problem,

The generation of the graph I've written in a Servlet and that generates an image, so on the JSP page it flickers and reloads the image.

Is there a better way to implement it as I want to see a continuous flowing graph and not an image?

NOTE: I'm using ajax call to the servlet.

Upvotes: 1

Views: 1851

Answers (3)

andersoj
andersoj

Reputation: 22884

Are you opposed to delivering the chart as an applet, say as outlined here?

Upvotes: 0

trashgod
trashgod

Reputation: 205785

Another alternative is a Java Web Start application that queries the servlet for updates.

Upvotes: 0

kazanaki
kazanaki

Reputation: 8054

  1. Java Applet

  2. Flash

  3. A Javascript plotting library maybe (such as this or this)

  4. Something else I haven't thought of

Upvotes: 1

Related Questions