From de792ef4f189b266c99a57a3706c01c1c3c093c2 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 3 Sep 2024 20:57:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8-=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=8A=98=E7=BA=BF=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E5=9B=BE=E8=A1=A8=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 4e02cd6a35..bf4c8e49c9 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 @@ -289,7 +289,7 @@ export class Line extends G2PlotChartView { protected configLegend(chart: Chart, options: LineOptions): LineOptions { const optionTmp = super.configLegend(chart, options) const xAxisExt = chart.xAxisExt - if (!optionTmp.legend || xAxisExt.length === 0 || xAxisExt[0].customSort.length === 0) { + if (!optionTmp.legend || xAxisExt.length === 0 || xAxisExt[0].customSort?.length === 0) { return optionTmp } // 图例自定义排序 @@ -302,7 +302,6 @@ export class Line extends G2PlotChartView { name: item, value: item, marker: { - spacing: 13, symbol: l.marker.symbol, style: { r: 6, @@ -316,7 +315,6 @@ export class Line extends G2PlotChartView { }) const legend = { ...l, - itemHeight: l.itemHeight + 4, custom: true, items: legendItems }