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 fae27788cf..97b6bfe098 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 @@ -836,9 +836,9 @@ export function getAnalyseHorizontal(chart: Chart) { }) assistLine.push({ type: 'text', - position: [xAxisPosition === 'left' ? 'start' : 'end', value], + position: ['start', value], content: content, - offsetY: xAxisPosition === 'left' ? -2 : -10 * (content.length - 2), + offsetY: 5, offsetX: 2, rotate: Math.PI / 2, style: {