fix(Charts): 更新有限空间分布图表数据和配置

调整污水处理站数量数据并优化图表显示配置
修改标题位置和3D视图参数以提升可视化效果
This commit is contained in:
gaohaifeng 2025-09-04 17:28:52 +08:00
parent 5bf82ab58b
commit 1b0c873e45
2 changed files with 6 additions and 22 deletions

View File

@ -72,7 +72,7 @@ export const option = {
title: [ title: [
{ {
x: 'center', x: 'center',
top: '35%', top: '30%',
text: total, text: total,
textStyle: { textStyle: {
color: '#eee', color: '#eee',
@ -82,7 +82,7 @@ export const option = {
}, },
{ {
x: 'center', x: 'center',
top: '48%', top: '43%',
text: '总数', text: '总数',
textStyle: { textStyle: {
color: '#ccc', color: '#ccc',
@ -108,11 +108,11 @@ export const option = {
}, },
grid3D: { grid3D: {
show: false, show: false,
boxHeight: 4, boxHeight: 2,
top: '-10%', top: '-10%',
viewControl: { viewControl: {
distance: 180, distance: 180,
alpha: 30, alpha: 35,
beta: 60, beta: 60,
autoRotate: false, // 自动旋转 autoRotate: false, // 自动旋转
}, },

View File

@ -7,24 +7,8 @@
], ],
"source": [ "source": [
{ {
"name": "类型1", "name": "污水处理站数量",
"value": 1867 "value": 275
},
{
"name": "类型2",
"value": 3100
},
{
"name": "类型3",
"value": 4000
},
{
"name": "类型4",
"value": 1987
},
{
"name": "类型5",
"value": 200
} }
] ]
} }