Rounding results in highcharts jquery script

后端 未结 6 1354
庸人自扰
庸人自扰 2021-02-07 04:20

I know this is a bit out there... but gonna ask anyways. I\'m using highcharts jquery script (http://www.highcharts.com/) to generate a pie chart. I am trying to round off the n

6条回答
  •  旧时难觅i
    2021-02-07 04:40

    Instead of use formatter you can set yDecimals as 2:

    tooltip: {
        yDecimals: 2
    }
    

    yDecimals: Number
    How many decimals to show in each series' y value. This is overridable in each series' tooltip options object. The default is to preserve all decimals.

提交回复
热议问题