.container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 20px; /* 添加容器之间的间隔 */ } .chart-container { width: 100%; height: 300px; margin-bottom: 20px; /* 添加底部间隔 */ } .ec-canvas { width: 100%; height: 100%; margin: 0 10px; /* 添加左右间隔 */ }