From c8ee83d753febdd1055faa1b66a12763ea2772f7 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 6 Sep 2023 17:11:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=9C=A8=E9=A1=B6=E9=83=A8=E6=97=B6=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E8=A2=AB=E9=81=AE=E6=8C=A1?= 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 | 5 +++++ 1 file changed, 5 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 5d4dedb723..3e27c4a66e 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -141,6 +141,11 @@ export function getLabel(chart) { if (l.position === 'inner') { label.offset = -10 } + } else if (chart.type.includes('bar')) { + label = { + layout: [{ type: 'limit-in-canvas' }], + position: l.position + } } else { label = { position: l.position