我正在開發一個使用PrimeFaces條形圖的JSF中的Web應用程序。我想改變傳說的位置。我驗證了它們使用後Primefaces: Charts and Legend position,如何更改條形圖PrimeFaces中的圖例位置?
<p:barChart id="stackedKWH"
value="#{kwhSalesBeanManager.kwhSalesChart}"
legendPosition="e" style="height:300px;width:800px"
title="kWh Sales by Type"
stacked="true"
barMargin="10"
min="0"
max="125000000"/>
但primeface 5.1沒有<p:barchart/>
<p:chart type="bar" model="#{chartView.barModel}" style="height:300px"/>
我的輸出是什麼樣子,
預期輸出:
我該如何做到這一點?有人建議我使用正確的方法嗎?
@jaquen H'ghar感謝ü這麼多,它的工作。 –
謝謝,不客氣 –