diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index b28a67ef9e..f2d093ee07 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1733,7 +1733,7 @@ function calculateTooltipPosition( if (isColumn(chart.type)) { return top + chartElement.getBoundingClientRect().height / 2 } - if (isMix || isPie) { + if (isMix(chart.type) || isPie(chart.type)) { return top + tooltipCtl.point.y } return top + tooltipCtl.point.y + 60