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 }