xAxis: [ { type: 'category', boundaryGap: false, // true才是正常的 data: Date } ],
注意:把这个设置为true才是正常的,如果设置为false两端没有留白,就会导致数据溢出