Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating graphs in java

 
sridhar lakka
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks in advance.
In my task i have to create a line graph,i have two sets of numeric values say speed and distance , and i want draw a graph depending upon the the values.I need this graph generation at dynamic time means depending upon the values set choosen the graph should redraw.
Is it possible to draw a graph without AWT/Applets?
Please give me some example code.

Thanks & Regards
Sree
 
Rama Krishna Ghanta
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can go for an Open Source third party tool called JFree Charts. Go to this URL for more info.

Regards,
Rama Krishna Ghanta
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Packages like JFreeChart or JChart2D can do this (both are linked here). If this is in a JSP page, then the cewolf tag library might also help.
 
sridhar lakka
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
But i have a doubt and tested on UNIX websphere server JFree charts are not working.
Please tell me whether i need to take any extra cautions before working on unix websphere.
I tested Tomcat windows then working fine.

Thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic