refactor(图表): 统一图表 legend 符号大小

This commit is contained in:
wisonic 2024-09-30 15:42:24 +08:00
parent f1cd3dae65
commit d952d838a2
2 changed files with 5 additions and 2 deletions

View File

@ -324,7 +324,7 @@ export class Line extends G2PlotChartView<LineOptions, G2Line> {
}
optionTmp.legend.marker.style = style => {
return {
r: 5,
r: 4,
fill: style.stroke
}
}

View File

@ -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,