From 8614264be82814417db502213981c90e7f89557c Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 3 Jul 2024 20:06:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E6=8A=98=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E5=BC=80=E5=90=AF=E6=A0=87=E7=AD=BE=E9=87=8D=E5=8F=A0?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/line/line.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts index 600b280ebb..e66831ec31 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts @@ -123,6 +123,7 @@ export class Line extends G2PlotChartView { fields: [], ...tmpOptions.label, offsetY: -8, + layout: [{ type: 'hide-overlap' }, { type: 'limit-in-plot' }], formatter: (data: Datum) => { if (!labelAttr.seriesLabelFormatter?.length) { return data.value