fix(图表): 双线图标签展示不全

This commit is contained in:
ulleo 2024-11-27 18:18:10 +08:00
parent 3ad01c2d9d
commit 29caffdf68

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' })