如何在primefaces中绘制条形图[vertical and stacked] [英] How to draw bar chart in primefaces [ vertical and stacked ]
本文介绍了如何在primefaces中绘制条形图[vertical and stacked]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
你能帮我用优质面孔绘制条形图。
在这里,我找到了水平和堆积的条形图
PrimeFaces ShowCase [ ^ ]
我想要垂直 和 堆叠条形图。
提前致谢。
我的尝试:
我已经用Google搜索并检查了所有可用的链接。但无法找到解决方案。
Dear All,
Could you please help me to draw bar chart using prime faces.
Here I found horizontal and stacked bar chart
PrimeFaces ShowCase[^]
I want Vertical and Stacked bar chart.
Thanks in advance.
What I have tried:
I have already googled and checked all available link. But unable to find solution.
推荐答案
您知道您链接的页面有一个名为ChartView.java的源代码选项卡
?您问题的答案就在那里!
更新:阅读此页面上的代码,确定Stacked与常规图表的关键是这个line:
You know that the page that you have linked to has a source code tab calledChartView.java
? The answer to your question is right there!
UPDATE: Reading the code on this page, what determines a Stacked versus regular chart is this line:
horizontalBarModel.setStacked(true);
这篇关于如何在primefaces中绘制条形图[vertical and stacked]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文