fix: 柱状图标签在顶部时可能被遮挡

This commit is contained in:
wisonic-s 2023-09-06 17:11:39 +08:00
parent e8e0d5a752
commit c8ee83d753

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