如何在條形圖中顯示酒吧上的數據點?primefaces條形圖:在酒吧上顯示數據點
我不想使用數據提示或工具提示,只有當他們被矇蔽時纔會突出顯示數據點。
我想始終在欄上顯示數據點。
有沒有什麼正確的方法來得到它?
謝謝。
我想正是這樣
下面是我的代碼
<p:barChart id="barChartId" value="#{myBean.myModel}"
orientation="horizontal"
stacked="true" extender="ext" animate="true" shadow="false" />
<h:outputScript>
function ext() {
this.cfg.highlighter = {
useAxesFormatters: false,
tooltipAxes: 'x'
};
this.cfg.legend = {
show: true,
location: 'ne',
placement: 'outside'
};
this.cfg.seriesDefaults = {
pointLabels : { show: true },
};
}
</h:outputScript>
這裏,熒光筆和傳說都工作正常,但點標籤不顯示在酒吧
看到:HTTP:/ /stackoverflow.com/questions/12050008/primefaces-3-4-charts-datatipformat – 2013-04-27 12:26:00
@NickHol:但我想在工具欄上的數據值不在工具提示 – swaps 2013-05-01 05:56:15
你可以使用它來改變它,以便它始終顯示。 – 2013-05-01 07:24:03