Merge pull request #9273 from dataease/pr@dev-v2@refactor_legend_height_optimize

refactor(图表): 减小图例下方的留白,高度和字体匹配
This commit is contained in:
wisonic-s 2024-04-23 14:43:06 +08:00 committed by GitHub
commit d9280c0869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,9 +273,7 @@ export function getLegend(chart: Chart) {
offsetY = 0
} else if (l.vPosition === 'bottom') {
if (chart.drill) {
offsetY = -16
} else {
offsetY = -4
offsetY = -12
}
} else {
offsetY = 0
@ -292,9 +290,9 @@ export function getLegend(chart: Chart) {
offsetY = 0
} else if (l.vPosition === 'bottom') {
if (chart.drill) {
offsetY = -22
offsetY = -18
} else {
offsetY = -10
offsetY = -6
}
} else {
offsetY = 0
@ -309,6 +307,7 @@ export function getLegend(chart: Chart) {
marker: {
symbol: legendSymbol
},
itemHeight: l.fontSize + 4,
radio: false,
pageNavigator: {
marker: {