forked from github/dataease
fix: 柱状图标签在顶部时可能被遮挡
This commit is contained in:
parent
e8e0d5a752
commit
c8ee83d753
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user