Merge pull request #7092 from dataease/pr@dev@fix_chart_label

Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
wisonic-s 2023-12-08 17:42:23 +08:00 committed by GitHub
commit 70986fddd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,9 @@ export function getLabel(chart) {
}
if (l.position === 'outer') {
label.type = 'spider'
label.layout = [
{ type: 'limit-in-plot' }
]
}
} else if (chart.type.includes('line') || chart.type.includes('area')) {
label = {
@ -143,7 +146,7 @@ export function getLabel(chart) {
}
} else if (chart.type.includes('bar')) {
label = {
layout: [{ type: 'limit-in-canvas' }],
layout: [{ type: 'limit-in-plot' }],
position: l.position
}
} else {