echarts Y轴刻度保留几位小数

yAxis: [
                {
                    type: 'value',
                    name: '雨量(mm)',
                    nameLocation: 'start',
                    inverse: true,
            axisLabel: {
                        formatter: function (value, index) {
                            return value.toFixed(1);
                        }
                    }
          }
]

 

posted @ 2016-09-20 17:34  小小高  阅读(8790)  评论(0编辑  收藏  举报