From 2a939671f94106631b491aed42a93d63a0f20684 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 23 Apr 2024 14:42:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=87=8F?= =?UTF-8?q?=E5=B0=8F=E5=9B=BE=E4=BE=8B=E4=B8=8B=E6=96=B9=E7=9A=84=E7=95=99?= =?UTF-8?q?=E7=99=BD=EF=BC=8C=E9=AB=98=E5=BA=A6=E5=92=8C=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/common/common_antv.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 757817baa7..667875a2a3 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 @@ -273,9 +273,7 @@ export function getLegend(chart: Chart) { offsetY = 0 } else if (l.vPosition === 'bottom') { if (chart.drill) { - offsetY = -16 - } else { - offsetY = -4 + offsetY = -12 } } else { offsetY = 0 @@ -292,9 +290,9 @@ export function getLegend(chart: Chart) { offsetY = 0 } else if (l.vPosition === 'bottom') { if (chart.drill) { - offsetY = -22 + offsetY = -18 } else { - offsetY = -10 + offsetY = -6 } } else { offsetY = 0 @@ -309,6 +307,7 @@ export function getLegend(chart: Chart) { marker: { symbol: legendSymbol }, + itemHeight: l.fontSize + 4, radio: false, pageNavigator: { marker: {