原文:echarts Y軸刻度保留幾位小數

yAxis: type: value , name: 雨量 mm , nameLocation: start , inverse: true, axisLabel: formatter: function value, index return value.toFixed ...

2016-09-20 17:34 0 8071 推薦指數:

查看詳情

Echarts Y保留幾位小數

Y添加標簽,可以保留1位小數 axisLabel: { formatter:function (value, index) { return value.toFixed(1); } } 效果如圖: <!DOCTYPE html><html> ...

Fri Feb 11 23:15:00 CST 2022 0 852
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM