我的应用程序中有一个类似于showCase:http://www.primefaces.org/showcase/ui/barChart.jsf上的第二个条形图的p:barchart
<p:barChart id="horizontal" value="#{chartBean.categoryModel}" legendPosition="se" style="height:300px"  
            title="Horizontal Bar Chart" orientation="horizontal" min="0" max="200"/>如何自定义X轴上的数字。我想将x轴的格式设置为仅使用整数。
提前谢谢。
发布于 2017-01-27 18:18:58
您可以使用以下代码在@ManagedBean类中将格式设置为axis:
Axis xAxis = categoryModel.getAxis(AxisType.X);
xAxis.setTickFormat("%.0f");https://stackoverflow.com/questions/13544626
复制相似问题