【发布时间】:2017-11-08 15:50:24
【问题描述】:
我在同一页面中有 2 个图表。我想只在一个图表中显示图例,而不是两者,但我只有一个全局解决方案。那是我的 javascript 代码:
$.jqplot.preDrawHooks.push(function () {
this.legend.show = true;});
还有我的 xhtml:
<p:chart id="chart17" responsive="true" type="bar" model="#{chart17Bean.barModel}" />
<p:chart id="chart18" responsive="true" type="bar" model="#{chart18Bean.barModel}" />
已编辑:我使用的是 Primefaces 6.1
【问题讨论】:
标签: javascript jsf charts primefaces jqplot