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 } 即可

上一篇:matplotlib 绘制多条折线


下一篇:【python】绘图,画虚线