fix(视图-饼图/环形图): 限制标签显示在视图内部。#6626

This commit is contained in:
wisonic-s 2023-12-08 16:20:16 +08:00
parent 380d89086b
commit 788fb97d02

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 = {