I recently asked about how to plot graphs in Java and I was recommended JFreeChart. After researching it I couldn’t find a way to do what I want to (simply plot some Point objects that are listed in an ArrayList and then draw a line through them as they are listed in the list). I would appreciate it if someone could help me get started with some code and if you could explain it to show me how to do this as I have looked around and can’t find what I am looking for. I don’t necessarily need JFreeChart code just preferably Swing/ JPanel. Thanks for your help.
Share
JFreeChart’s xy plot will do exactly what you want.
http://www.javaresources.biz/jfreechart_tutorial.jsp