Question

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

I want something that can work offline

Was it helpful?

Solution 2

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

OTHER TIPS

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)

if you use JSF 2, you can look at flot4jsf2 project. This is JSF2 component for drawing charts, it uses javascript flot library.

We were going through the same issue and ended up using JQPlot. It is extensive, JQuery based and so far so good.

http://www.jqplot.com/

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.

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

There is a Highcharts wrapper :

the demo is here : http://showcase-jsfcharts.rhcloud.com/

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:

Second link is a example of jsp page with graph.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top