只需要设置xAxis中的boundaryGap属性,设置为false代表是零刻度开始,设置为true代表离零刻度间隔一段距离
...
xAxis: {
type: 'category',
boundaryGap: false,
data: dateList
},
...
只需要设置xAxis中的boundaryGap属性,设置为false代表是零刻度开始,设置为true代表离零刻度间隔一段距离
...
xAxis: {
type: 'category',
boundaryGap: false,
data: dateList
},
...