mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix: 柱状图标签在顶部时可能被遮挡
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user