mirror of
https://github.com/dataease/dataease.git
synced 2026-06-13 00:54:22 +08:00
Merge pull request #7092 from dataease/pr@dev@fix_chart_label
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user