Plot Graphs in Java
64,472
Solution 1
You should check out JFreeChart which has Swing support. Here are some samples:
http://www.jfree.org/jfreechart/samples.html
Solution 2
You should look at JFreeChart.
Solution 3
check out the feature comparison for Java report and charting libraries; http://java-source.net/open-source/charting-and-reporting
Solution 4
Here is a related answer of me: I have summary of existing tools and show a alternative option to create interactive charts with Gnuplot in a JPanel
For your case (2d charts) JFreeChart is OK. But sometimes JFreeChart is overkill for simple charts.
Related videos on Youtube
Author by
PKay
Updated on March 09, 2020Comments
-
PKay over 4 years
The Java Swing GUI that I'm developing needs to plot a 2D graph based on the x and y coordinates generated in the program.
Is there a Swing component for that?
Or is there any other open source package for the purpose?
-
PKay almost 15 yearsis there a tutorial doc or something of kind for using JFreeChart?