• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing graphs

 
Christopher Arthur
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm wondering there is a nice open-source or public domain set of examples or classes showing how to make 2D graphs. I want to have a graph of a function in a window with some interactivity--the user should be able to move a marker from left to right across the graph, and then the program will display the value of the function at that point.

Cheers,

Chris
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen several mentioned in the sun forums, JFreeChart the most often.
 
Carl Wilburn
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Craig, thanks for the code sample. Probably could find others with a little searching, but yours is here. My son is just starting a CompSci degree and has just started a Java class and a Calculus class. Your code may be interesting to him.
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is link of JFreeChart.
Another interesting open-source about create 2D is JCharts.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, JFreeChart crashes, when your web application was deployed in Unix-based servers... I experienced it four months ago, when I was leading a project based on JRun running on AIX of IBM...

So be aware of the compatibility issue, whenever you try to use the ready-made packages...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic