页面调整

main
weiying 2023-12-20 22:55:07 +08:00
parent 510f1a1dd7
commit bd0741d159
3 changed files with 8 additions and 6 deletions

BIN
public/assets/map-label.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
public/assets/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 KiB

View File

@ -12,15 +12,15 @@ const SyglPage: React.FC = () => {
var echartData = [ var echartData = [
{ {
value: 16, value: 16,
name: '水' name: '水'
}, { }, {
value: 38, value: 90,
name: '河流' name: '河流'
}, { }, {
value: 47, value: 47,
name: '溪沟' name: '溪沟'
}, { }, {
value: 7, value: 15,
name: '塘坝' name: '塘坝'
}]; }];
@ -28,7 +28,7 @@ const SyglPage: React.FC = () => {
title: { title: {
text:'168', text:'168',
subtext: '水源总数', subtext: '水源总数',
x: '22%', x: '24%',
top:'33%', top:'33%',
padding:[24,0], padding:[24,0],
textStyle:{ textStyle:{
@ -39,6 +39,7 @@ const SyglPage: React.FC = () => {
subtextStyle: { subtextStyle: {
color: '#A6AFC0', color: '#A6AFC0',
fontSize: 16, fontSize: 16,
padding:[24,0],
}, },
}, },
legend: { legend: {
@ -46,9 +47,10 @@ const SyglPage: React.FC = () => {
orient: 'vertical', orient: 'vertical',
textStyle: { textStyle: {
color: "#fff", color: "#fff",
fontSize: 15,
}, },
top:"10%", top:"24%",
right:"10%", right:"15%",
formatter: (name:any) => { formatter: (name:any) => {
//console.log(name); //console.log(name);
//console.log(chartData); //console.log(chartData);