forked from github/dataease
refactor: 折线图标签优化
This commit is contained in:
parent
75b2b77a40
commit
7d69d3da92
@ -112,7 +112,13 @@ export function getLabel(chart) {
|
|||||||
if (l.show) {
|
if (l.show) {
|
||||||
if (chart.type === 'pie') {
|
if (chart.type === 'pie') {
|
||||||
label = {
|
label = {
|
||||||
type: l.position
|
type: l.position,
|
||||||
|
autoRotate: false
|
||||||
|
}
|
||||||
|
} else if (chart.type.includes('line')) {
|
||||||
|
label = {
|
||||||
|
position: l.position,
|
||||||
|
offsetY: -8
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
label = {
|
label = {
|
||||||
|
Loading…
Reference in New Issue
Block a user