• Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphs support in Java.  RSS feed

 
Aphsal Viking
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I want to draw different graphs in my application. Is there any API available for it or any support for it. Please help me how to draw Bar / Line / Pie charts.
 
David Gilbert
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFreeChart is a free (GNU LGPL) class library for generating charts in Java:
http://www.object-refinery.com/jfreechart/index.html
It includes support for bar charts (regular, stacked, 3D effect), pie charts, line charts, scatter plots, time series charts, candle stick plots, high-low-open-close and more.
JFreeChart has been successfully used in applications, servlets and applets. Give it a try!
Regards,
Dave Gilbert
www.object-refinery.com
 
Aphsal Viking
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dave . Actually I want to display my graphs in Applet and I am deploying my final site (which is in ASP) on a shared server. Can I still use it ?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Viking" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!

-Nate
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also looking for an answer o this..I would like to use the graph capabilities into servlets..but usig this free API means settings of server for this AGAIN..too much of work and costs involved(as I have to pay for getting my server settled like this)..
Is their no API in built in JDK which can be used for same.
regards
Arun
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to search on sourceforge.net for a java Graph application.
 
David Gilbert
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Viking:
Thanks Dave . Actually I want to display my graphs in Applet and I am deploying my final site (which is in ASP) on a shared server. Can I still use it ?

You can use JFreeChart in an applet. It requires Java 2, so some browsers may not like it. Mozilla works great for me. Try out the Markov Queue Simulation that Lev Givon has posted--it uses JFreeChart:
Markov Queue Simulation
Regards,
Dave Gilbert
www.object-refinery.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!