yAxis: { // name: "粉丝数/点赞数", axisLabel: { formatter: function (value, index) { if (value >= 100000000) { return value / 100000000 + "亿"; } else if (value >= 10000) { return value / 10000 + "万"; } else { return value; } }, }, nameTextStyle: { color: "#2a2b2b", fontSize: 16, padding: [0, 0, 20, 0], },//颜色 type: "value", },
本文参考链接:https://www.cnblogs.com/wulicute-TS/p/14158205.html