echart 柱状图X轴显示不全

z要设置interval为0就可以了

 xAxis: [
          {
            type: "category",
            boundaryGap: false,
            data: [],
            axisLine: {
              show: false
            },
            axisTick: {
              show: false
            },
            axisLabel: {
              interval:0,  //设置这里
              margin: 10
            }
          }

猜你喜欢

转载自www.cnblogs.com/lianxisheng/p/10907371.html