diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index eaab25dbf..48aa7572f 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -242,6 +242,10 @@ export default { params.x = this.chartLastPosition.x + params.span > 12 ? 0 : this.chartLastPosition.x params.y = this.chartLastPosition.y + 12 } + if (params.x + params.span > 12) { + params.x = 0 + params.y += 1 + } delete params.panel if (params.type === 'table') { delete params.param.tags