Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 X 轴上获取十进制刻度标签
十进制值应该只有一位十进制数字。
我能做到吗?
请建议我
感谢你
您应该使用 的extender,<p:barChart如下所示:
extender
<p:barChart
<p:barChart value="#{myBean.myModel}" widgetVar="myBarChart" extender="my_ext"/> <script type="text/javascript"> function my_ext() { this.cfg.axes.xaxis.tickOptions = { formatString : '%#.1f' }; } </script>