不支持

echarts y轴 转万转亿 转单位

        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",
        },

 

posted @ 2020-12-19 10:43  骑上我的小摩托  阅读(1870)  评论(0编辑  收藏  举报