Merge pull request #7092 from dataease/pr@dev@fix_chart_label
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
70986fddd7
@ -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 = {
|
||||
@ -143,7 +146,7 @@ export function getLabel(chart) {
|
||||
}
|
||||
} else if (chart.type.includes('bar')) {
|
||||
label = {
|
||||
layout: [{ type: 'limit-in-canvas' }],
|
||||
layout: [{ type: 'limit-in-plot' }],
|
||||
position: l.position
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user