highcharts 坐標軸 數值 格式化


以Y軸為示例:

yAxis: {
          min: 0,
          gridLineColor: '#ececee',
          gridLineWidth: 1,
          lineColor: '#ececee',
          lineWidth: 1,
          title: {
            align: 'high',
            offset: 0,
            text: this.$t('safetyMonitor.overview.number_of_alarms'),
            rotation: 0,
            y: -10
          },
          labels: {
            enabled: true,
             formatter: function() {
                return Math.round(Math.exp(this.value));
            }
          }
        }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM