Drawing Graphs (charts) in JSF
How can I draw dynamic graphs in web pages in JSF ? People have suggested Google Chart Api开发者_Python百科
I want something that can work offline
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)
Hey I found an answer to my question after scouring the net. Apache myFaces has a tr:chart component that solves my problem :)
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:
- JFreeChart - An Introduction
- Create area chart in JSP page using JFreeChart
Second link is a example of jsp page with graph.
精彩评论