首页 > 其他分享 >Echarts Y轴网格线宽度调整

Echarts Y轴网格线宽度调整

时间:2022-11-08 10:00:59浏览次数:40  
标签:false show color 0.5 网格线 宽度 true Echarts

    yAxis: {
      show: false,
      type: "value",
      axisTick: {
        show: false,
      },
      show: true,
      axisLabel: {
        show: true,
      },
      // y轴单位
      name: " ",
      scale: false,
      min: 0,
      max: 100,
      splitNumber: 10,
      splitLine: {
        show: true,
        lineStyle: {
          width: 0.5,  // 设置网格线的长短
          color: "#e0dede",
          type: "dashed",
        },
      },
      axisLine: {
        show: false,
        lineStyle: {
          color: "#d2d2d2",
        },
      },
    },
下面是宽度为0.5时候的网格线样式

 

 网格线 width: 1, 时候的样式

 

 

标签:false,show,color,0.5,网格线,宽度,true,Echarts
From: https://www.cnblogs.com/lxsunny/p/16868682.html

相关文章