Merge pull request #12549 from dataease/pr@dev-v2@refactor_legend_symbol_size

refactor(图表): 统一图表 legend 符号大小
This commit is contained in:
wisonic-s 2024-09-30 15:44:36 +08:00 committed by GitHub
commit 631da3aee4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,