如何为ECHARTS的MakerLine添加保证金底部符号

问题描述

我需要在symbolXaxis之间添加填充, 并在这里编码

       markLine: {silent: true,symbolSize:5,data: [
          {
            name : "symbol Bottom",xAxis : dates[dates.length-3]
            symbolSize:30
        }]}

enter image description here

解决方法

您需要将此添加到xAxis。检出this

xAxis: {
    type: 'category',data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],axisLabel: {
        padding: 10,}
},