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,