Drawing Graphs (charts) in JSF

2019-02-18 03:00发布

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

I want something that can work offline

8条回答
Ridiculous、
2楼-- · 2019-02-18 03:37

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

查看更多
放我归山
3楼-- · 2019-02-18 03:38

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

查看更多
放我归山
4楼-- · 2019-02-18 03:38

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.

查看更多
仙女界的扛把子
5楼-- · 2019-02-18 03:41

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

查看更多
做个烂人
6楼-- · 2019-02-18 03:44

There is a Highcharts wrapper :

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

查看更多
祖国的老花朵
7楼-- · 2019-02-18 03:46

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)

查看更多
登录 后发表回答