File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Graphs in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Graphs in JSF" Watch "Graphs in JSF" New topic
Author

Graphs in JSF

nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Hi all,

I need to implement a graph in JSf. I saw batik-svg and jfreechart. All of them creates a image or svg but i don't have option to save these file to server. Can anybody have idea which is best suited to my requirement.?

Any help will be appreciated.

Thanks
Nitin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
JFreeChart can save images just fine - the ChartUtilities class has several convenience methods for that. It supports PNG and JPEG, and it's not hard to extend that for GIF and TIFF if need be.


Ping & DNS - updated with new look and Ping home screen widget
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
if JFreechart creates images where these images will be stored. Is there a way out of not using images
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
if JFreechart creates images where these images will be stored.

Check the javadocs of the methods in ChartUtilities, and it should become clear what you need to do.

Is there a way out of not using images

Not sure what you're asking - you DO want to use an image, no?
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Actually i don't want to use image. Thanks for you replies. I will go through javadocs and takes things from here.. thanks for your help and time
yigit darcin
Greenhorn

Joined: Jan 08, 2008
Posts: 15
Hi,

you can use PrimeFaces charts as it is very easy to use and it is very lightweight. You can have ajax in charts also.

PrimeFaces chart.

Smitha H Rao
Ranch Hand

Joined: Oct 20, 2007
Posts: 50
Even I suggest PrimeFaces.

You can also find a sample tutorial for graphs in jsf at:
http://www.skill-guru.com/blog/2009/08/31/implementing-charts-in-jsf-using-jsf-comp-library/

Hope this helps!


Free Mock tests Interview questions
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Thanks to all of you looks like primefaces is right choice for me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
If you're looking for a JSP tag library that doesn't save images on the server, then cewolf might be the way to go; see my signature for details.
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
I ended up using prime faces. It really fullfilled my requirement and look-feel was also very nice. Thanks to all of you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Graphs in JSF
 
Similar Threads
SVG Dynamic Graphs
java graphing performance issue
Anyone know about SVG
graphs in jsf
JSF chart and Chinese font