views:

56

answers:

3

Hi,
I'm looking for ways to create JPEG(or PDF) graphs/charts using JAVA. Any suggestions?

Ultimately I want to make a PDF report, but I figured that even if I get the graph in JPEG then I can use a JPEG to PDF converter to make it a PDF.

Thanks.

+5  A: 
org.life.java
+5  A: 

We are using JFreeChart for this. I do not know of other options, but this has served us well.

Kristoffer E
+3  A: 

It is NOT the best idea to "convert" a jpeg to PDF, because the JPEG still contains of pixels then. If you can, do produce vector charts which will look much nicer and produce a smaller PDF.

See these sites:

I would prefer JFreeChart, since I used it successfully for years, and it always was stable and reliable.

Daniel
Yup Daniel, I'll most probably use JFreeChart as well.
Shamal Karunarathne