From 1b0c873e45332427b05e0d311484fd7b1daac4eb Mon Sep 17 00:00:00 2001 From: gaohaifeng Date: Thu, 4 Sep 2025 17:28:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(Charts):=20=E6=9B=B4=E6=96=B0=E6=9C=89?= =?UTF-8?q?=E9=99=90=E7=A9=BA=E9=97=B4=E5=88=86=E5=B8=83=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=92=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整污水处理站数量数据并优化图表显示配置 修改标题位置和3D视图参数以提升可视化效果 --- .../FiniteSpatialDistribution/config.ts | 8 ++++---- .../FiniteSpatialDistribution/data.json | 20 ++----------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/config.ts b/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/config.ts index 4be240a..2e8f7f0 100644 --- a/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/config.ts +++ b/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/config.ts @@ -72,7 +72,7 @@ export const option = { title: [ { x: 'center', - top: '35%', + top: '30%', text: total, textStyle: { color: '#eee', @@ -82,7 +82,7 @@ export const option = { }, { x: 'center', - top: '48%', + top: '43%', text: '总数', textStyle: { color: '#ccc', @@ -108,11 +108,11 @@ export const option = { }, grid3D: { show: false, - boxHeight: 4, + boxHeight: 2, top: '-10%', viewControl: { distance: 180, - alpha: 30, + alpha: 35, beta: 60, autoRotate: false, // 自动旋转 }, diff --git a/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/data.json b/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/data.json index 4c76d33..b84a323 100644 --- a/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/data.json +++ b/src/packages/components/Charts/ConfinedSpace/FiniteSpatialDistribution/data.json @@ -7,24 +7,8 @@ ], "source": [ { - "name": "类型1", - "value": 1867 - }, - { - "name": "类型2", - "value": 3100 - }, - { - "name": "类型3", - "value": 4000 - }, - { - "name": "类型4", - "value": 1987 - }, - { - "name": "类型5", - "value": 200 + "name": "污水处理站数量", + "value": 275 } ] } \ No newline at end of file