其他分享
首页 > 其他分享> > Echarts 如何设置markLine的width

Echarts 如何设置markLine的width

作者:互联网

option = {
  xAxis: {
    type: "category",
    data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
  },
  yAxis: {},
  series: [{
    data: [820, 932, 901, 934, 1290, 1330, 1320],
    type: "line",
    markLine: {
      data: [{
        type: "average"
      }],
      lineStyle: {
        width: 2
      }
    }
  }]
}

在markLine 中添加 lineStyle:{ width:2 } 即可

标签:markLine,1320,type,data,width,lineStyle,Echarts
来源: https://blog.csdn.net/zhao920724/article/details/111313075