From 788fb97d023abf8d578db916d2f6d96084afdfa3 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 8 Dec 2023 16:20:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E9=A5=BC=E5=9B=BE/?= =?UTF-8?q?=E7=8E=AF=E5=BD=A2=E5=9B=BE):=20=E9=99=90=E5=88=B6=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=98=BE=E7=A4=BA=E5=9C=A8=E8=A7=86=E5=9B=BE=E5=86=85?= =?UTF-8?q?=E9=83=A8=E3=80=82#6626?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/chart/common/common_antv.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/frontend/src/views/chart/chart/common/common_antv.js b/core/frontend/src/views/chart/chart/common/common_antv.js index 385bc2ef4c..9b927874bf 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -128,6 +128,9 @@ export function getLabel(chart) { } if (l.position === 'outer') { label.type = 'spider' + label.layout = [ + { type: 'limit-in-plot' } + ] } } else if (chart.type.includes('line') || chart.type.includes('area')) { label = { From 7bbfe6c21f9523f536e03c90e7873b4385d8f19a Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 8 Dec 2023 17:40:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E6=A8=AA=E5=90=91?= =?UTF-8?q?=E6=9F=B1=E7=8A=B6=E5=9B=BE):=20=E6=A0=87=E7=AD=BE=E5=92=8C?= =?UTF-8?q?=E7=BA=B5=E8=BD=B4=E9=87=8D=E5=8F=A0#6634?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/chart/common/common_antv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/src/views/chart/chart/common/common_antv.js b/core/frontend/src/views/chart/chart/common/common_antv.js index 9b927874bf..32436edad7 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -146,7 +146,7 @@ export function getLabel(chart) { } } else if (chart.type.includes('bar')) { label = { - layout: [{ type: 'limit-in-canvas' }], + layout: [{ type: 'limit-in-plot' }], position: l.position } } else {