From dfe830fc9ad8ebf246f7a365b29efdde96eca889 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 20 Aug 2024 17:18:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=8F=8C?= =?UTF-8?q?=E8=BD=B4=E5=9B=BE=E5=9B=BE=E4=BE=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/others/chart-mix.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts index 5a6dbf75a8..a6ee67f4ce 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts @@ -547,6 +547,14 @@ export class ColumnLineMix extends G2PlotChartView { } } } + const size = Math.sqrt(o.legend.pageNavigator?.text?.style?.fontSize ?? 16) + o.legend.marker.style = style => { + const fill = style.fill ?? style.stroke + return { + r: size < 4 ? 4 : size, + fill + } + } } return o }