File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Dynamic Graph Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Dynamic Graph" Watch "Dynamic Graph" New topic

Dynamic Graph

J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi all,
I want to be able to produce dynamic graphs in a browser from data held on the server.
I was wondering if anyone could suggest some possible architectures and products( preferably free and open source ).
I could create a servlet myself that gets data via jdbc and outputs a graph as a gif, but I dont want to re-invent the wheel and would like something a bit more advanced/interactive/flashy.
Thanks For Your Help,
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Is SVG is good option for you,if so visit for FOP
something like DB-XML-FO-SVG.

Spritle Software Blogs
David Gilbert
Ranch Hand

Joined: Jun 01, 2002
Posts: 42
If by 'graphs' you are referring to charts then try JFreeChart:
If you mean 'graphs' with nodes and vertices then try JGraph:
Dave Gilbert
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695


If you wanted something REALLY simple, like a bar graph...

log in to your hotmail account, and view the source of that page. Check out how they do the little green bar that shows you how much of your inbox is being used.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
Applet/Servlet communication also might be one potential solution. As Applet would be powerful to use graphics than HTML graphics...

i hope i understood the question correctly...
J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
yeah thanks for your help all.
a charting paackage in an applet with servlets sounds like an interesting combination.
Jaume Sola

Joined: Jan 21, 2003
Posts: 14
See RChart: and click on "RChart".
It has the following advantages:
- very reasonable price (starting at $24)
- Documentation , support and online-tutorial are included in the price.
- Works as applet, servlet or bean.
- It works with java 1.1 also
- Supports more than 18 types of charts andhas interactive features (zoom,tips,scroll,html
- Includes RChart Visual Builder (almost no programming)
- Can read data from database.
- source code is available can be freely modified for commercial applications also.
I agree. Here's the link:
subject: Dynamic Graph
It's not a secret anymore!