• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Graphs in JSF

 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if JFreechart creates images where these images will be stored. Is there a way out of not using images
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all of you looks like primefaces is right choice for me.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ended up using prime faces. It really fullfilled my requirement and look-feel was also very nice. Thanks to all of you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic