Merge pull request #6037 from dataease/pr@dev@fix_bar_top_label_hidden

Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
wisonic-s 2023-09-06 17:15:24 +08:00 committed by GitHub
commit dfd87aca11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,11 @@ export function getLabel(chart) {
if (l.position === 'inner') {
label.offset = -10
}
} else if (chart.type.includes('bar')) {
label = {
layout: [{ type: 'limit-in-canvas' }],
position: l.position
}
} else {
label = {
position: l.position