tags:

views:

792

answers:

5

Hi,

How can I draw dynamic graphs in web pages in JSF ? People have suggested Google Chart Api

I want something that can work offline

A: 

how about the new Canvas API? may be too bleeding edge to be counted on but it is functional in Chrome and Firefox, and looks to have a lot of potential. Its API reminds of Quartz / OpenGL (but a lot simpler) which makes programatic drawing pretty easy.

darren
A: 

Richfaces provides a component to draw 2D graphics. http://livedemo.exadel.com/richfaces-demo/richfaces/paint2D.jsf

stacker
I am using myfaces do you have anything for that ???
Anand
http://markmail.org/message/vgndquz3lbte4dhn
stacker
A: 

Hello ,

I have used jfreechart to draw 3d and 2d Chart at run time. I am using that graph on my pdf file as a report. I will suggest you to use this jfreechart api, I have attached some link for you please check it , Click here.

1

2

Second link is a example of jsp page with graph.

prakash.panjwani
Honestly, roseindia.net sucks when it comes to "best practices". Practically all code examples over there are cluttered of bad practices. http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html
BalusC
+1  A: 

PrimeFaces have wonderful graph components. You can give them a try.

Exadel Fiji also has nice graph components.

MyFaces Trinidad is also an option (as indicated by the OP)

Bozho
Was going to suggest the same after reading OP. +1.
BalusC
A: 

Hey I found an answer to my question after scouring the net. Apache myFaces has a tr:chart component that solves my problem :)

Anand