From ee8bf280c0b977128ecf5f514d46051668a42a63 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 15 Nov 2024 11:05:20 +0800
Subject: [PATCH] 饼图样式调整
---
src/views/survey/components/box/fireContent.vue | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/src/views/survey/components/box/fireContent.vue b/src/views/survey/components/box/fireContent.vue
index 0c30979..523b548 100644
--- a/src/views/survey/components/box/fireContent.vue
+++ b/src/views/survey/components/box/fireContent.vue
@@ -27,13 +27,13 @@
{
name: '一般',
itemStyle: {
- color: '#FFC000'
+ color: '#FFC000'
}
},
{
name: '较大',
itemStyle: {
-
+
color: '#F4090F'
}
},
@@ -45,7 +45,7 @@
}
]
-function getRiskSource () {
+function getRiskSource() {
getRiskSourceStatistic().then(res => {
let data = res.data.data
let dataRsult = []
@@ -73,16 +73,18 @@
color: "#fff",
},
textAlign: "center",
- right: "43%",
+ left: "62%",
+ // right: "43%",
top: "36%",
},
+
legend: {
orient: "vertical",
- top: '8%',
- right: "8%",
+ top: "5%",
+ left: "5%",
textStyle: {
- color: '#fff'
- }
+ color: "#fff",
+ },
},
grid: {
@@ -103,7 +105,8 @@
type: 'pie',
left: '-5%',
radius: ['45%', '75%'],
- data: dataRsult
+ data: dataRsult,
+ left: "25%"
}
]
})
--
Gitblit v1.9.3