fix: 桑基图标题位置调整,避免被图表遮挡

- 标题 top 调整为 5
- 桑基图 series 添加 top: 50 给标题留出空间
- 添加 bottom, left, right 边距配置

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-15 14:22:09 +08:00
parent e48bcbb74b
commit f2713e5e0a

View File

@@ -349,7 +349,7 @@ function getSankeyOption(data) {
title: { title: {
text: '事件影响力传导流向', text: '事件影响力传导流向',
left: 'center', left: 'center',
top: 10, top: 5,
textStyle: { textStyle: {
color: '#00d2d3', color: '#00d2d3',
fontSize: 16, fontSize: 16,
@@ -379,6 +379,10 @@ function getSankeyOption(data) {
series: [{ series: [{
type: 'sankey', type: 'sankey',
layout: 'none', layout: 'none',
top: 50, // 给标题留出空间
bottom: 20,
left: 20,
right: 150, // 右侧留空间给标签
emphasis: { focus: 'adjacency' }, emphasis: { focus: 'adjacency' },
nodeAlign: 'justify', nodeAlign: 'justify',
layoutIterations: 0, layoutIterations: 0,