PrimeFaces 3.4 Charts datatipFormat

前端 未结 5 1418
别那么骄傲
别那么骄傲 2020-12-09 12:41

today I wanted to try the new PrimeFaces release 3.4.RC1. For charts there is a new attribute called datatipFormat.

I want to show only the value (y-axis) in a line

5条回答
  •  -上瘾入骨i
    2020-12-09 13:22

    You can show only the first 0 characters of the x value (%.0s), what means to hide it. Behind it you can do what you want with the y value in sprintf format.

    yourBarChartModel.setDatatipFormat("%.0s%s");
    

提交回复
热议问题