refactor: 折线图标签优化

This commit is contained in:
junjun 2022-03-02 15:40:57 +08:00
parent 75b2b77a40
commit 7d69d3da92

View File

@ -112,7 +112,13 @@ export function getLabel(chart) {
if (l.show) {
if (chart.type === 'pie') {
label = {
type: l.position
type: l.position,
autoRotate: false
}
} else if (chart.type.includes('line')) {
label = {
position: l.position,
offsetY: -8
}
} else {
label = {