xAxis: [{
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
max: function (value) {return value.max + 16;}, //x轴刻度线外留白
}],
echarts k线图x轴刻度线外留白
![](https://img-home.csdnimg.cn/images/20240711042549.png)
xAxis: [{
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
max: function (value) {return value.max + 16;}, //x轴刻度线外留白
}],