解决办法:

减少y轴的margion,和格式化y轴

 myChart.setOption({
         ...,
          yAxis: {
            axisLabel: {
              margin: 2,
              formatter: function (value, index) {
                if (value >= 10000 && value < 10000000) {
                  value = value / 10000 + "";
                } else if (value >= 10000000) {
                  value = value / 10000000 + "千万";
                }
                return value;
              }
            },
          },
          series: this.series
        });

 

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2022-02-10
  • 2021-03-26
  • 2021-11-03
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-04-17
相关资源
相似解决方案