如何在gauge bottomText中使用math round js?

how to use math round js in gauge bottomText?

如何使用数学舍入从 ajax 值到底部文本规格进行舍入?

这是我的仪表 js

 var gaugeChart = AmCharts.makeChart("gaugeDetails2", {
                    "type": "gauge",
                    "theme": "light",
                    "axes": [{
                            "axisThickness": 1,
                            "axisAlpha": 0.2,
                            "tickAlpha": 0.2,
                            "labelsEnabled": false,
                            "bands": [{
                                    "balloonText": "Good",
                                    "color": "#84b761",
                                    "endValue": 60,
                                    "startValue": 0
                                }, {
                                    "balloonText": "Fair",
                                    "color": "#fdd400",
                                    "endValue": 120,
                                    "startValue": 61
                                }, {
                                    "balloonText": "Poor",
                                    "color": "#cc4748",
                                    "endValue": 180,
                                    "startValue": 121
                                }],
                            "bottomText": data.data3['KPI_REALISASI_PROGRAM'],
                            "bottomTextYOffset": -10,
                            "endValue": 180
                        }],
                    "arrows": [{"value": data.data3['KPI_REALISASI_PROGRAM']}],
                    "export": {
                        "enabled": false
                    }
                });

如果我使用 Math.round(data.data3['KPI_REALISASI_PROGRAM'].5),我想用数学轮对 data.data3['KPI_REALISASI_PROGRAM'] 进行舍入;仪表无法显示。请帮忙谢谢

使用math.ceil进行四舍五入:

Math.ceil(data.data3['KPI_REALISASI_PROGRAM']);