Merge pull request #13615 from ulleo/dev-v2

fix(图表): 双线图标签展示不全
This commit is contained in:
dataeaseShu 2024-11-27 18:19:38 +08:00 committed by GitHub
commit 5f51b5b9ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,6 +176,10 @@ export function getLabel(chart: Chart) {
) {
layout.push({ type: 'limit-in-canvas' })
layout.push({ type: 'hide-overlap' })
} else if (chart.type.includes('chart-mix')) {
layout.push({ type: 'limit-in-canvas' })
layout.push({ type: 'limit-in-plot' })
layout.push({ type: 'hide-overlap' })
} else {
layout.push({ type: 'limit-in-plot' })
layout.push({ type: 'fixed-overlap' })