当你的才华还撑不起你的梦想时,你只能一直前进!

echarts Y轴只显示整数,或保留n位小数

yAxis: [
            {
                type: 'value',
                minInterval: 1//只显示整数
            }
        ],
axisLabel: { //保留一位小数
              formatter: function (value, index) {           
                  return value.toFixed(1);      
                 }                
           }

 

posted @ 2019-07-26 09:56  One'-_-'Piece  阅读(4296)  评论(0编辑  收藏  举报