|
@@ -118,8 +118,9 @@ export default {
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
grid: {
|
|
grid: {
|
|
|
left: 0, right: 0,
|
|
left: 0, right: 0,
|
|
|
- top: (this.showAxis || this.showScanLine) ? Math.round(35 * s) : Math.round(10 * s),
|
|
|
|
|
- bottom: Math.round(10 * s),
|
|
|
|
|
|
|
+ // 当隐藏坐标轴/扫描线时(即在表格中显示时),将上下边距设为 0,让色块铺满高度
|
|
|
|
|
+ top: (this.showAxis || this.showScanLine) ? Math.round(35 * s) : 0,
|
|
|
|
|
+ bottom: (this.showAxis || this.showScanLine) ? Math.round(10 * s) : 0,
|
|
|
containLabel: false
|
|
containLabel: false
|
|
|
},
|
|
},
|
|
|
xAxis: { type: 'value', min: 0, max: realMaxTime, show: false },
|
|
xAxis: { type: 'value', min: 0, max: realMaxTime, show: false },
|