Java GUI Framework Question:

How to generate some charts / plots in Java?

Tweet Share WhatsApp

Answer:

If you want to do the drawing in Java, consider using a chart drawing library. E.g.

http://www.jfree.org/jfreechart/index.html

gets recommended often. The web site also has a list of other chart libraries.

If you just have to plot some (scientific) data, and if you can live with an external C program, consider using gnuplot

http://www.gnuplot.info/

Use System.exec() to pipe the plot commands and data into gnuplot, or just write the data to a file and use gnuplot separately.

Download Java GUI Framework PDF Read All 28 Java GUI Framework Questions
Previous QuestionNext Question
What is the equivalent of AWTs Canvas in Swing?How to to write a diagram editor. How to start?