From d952d838a25348b6b4e73800d5d29b733aeb3225 Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 30 Sep 2024 15:42:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=9B=BE=E8=A1=A8=20legend=20=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E5=A4=A7=E5=B0=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 | 2 +- .../views/chart/components/js/panel/common/common_antv.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 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 31173be216..69a2e2b63e 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 @@ -324,7 +324,7 @@ export class Line extends G2PlotChartView { } optionTmp.legend.marker.style = style => { return { - r: 5, + r: 4, fill: style.stroke } } 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 113b6755ce..af74b45e3d 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 @@ -308,7 +308,10 @@ export function getLegend(chart: Chart) { offsetX: offsetX, offsetY: offsetY, marker: { - symbol: legendSymbol + symbol: legendSymbol, + style: { + r: 4 + } }, itemHeight: l.fontSize + 4, radio: false,