From cef5143262d8a6301d84e97dea849b56047af12d Mon Sep 17 00:00:00 2001 From: lnn19986213 <1667908750@qq.com> Date: Wed, 17 Apr 2024 15:30:18 +0800 Subject: [PATCH 1/3] gx --- src/view/echarts_education/pieRose.vue | 188 ++++++++++++------------- src/view/education.vue | 151 +++++++++++++++++--- 2 files changed, 220 insertions(+), 119 deletions(-) diff --git a/src/view/echarts_education/pieRose.vue b/src/view/echarts_education/pieRose.vue index d20b300..3d2eacf 100644 --- a/src/view/echarts_education/pieRose.vue +++ b/src/view/echarts_education/pieRose.vue @@ -3,11 +3,24 @@ diff --git a/src/view/education.vue b/src/view/education.vue index 5ee2184..8c7dd27 100644 --- a/src/view/education.vue +++ b/src/view/education.vue @@ -14,17 +14,19 @@
- - + +
- - + +
- +
@@ -102,37 +104,119 @@ From a1a454ef8cb7ebb787501ce0e110b63dd030a60c Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Wed, 17 Apr 2024 16:03:20 +0800 Subject: [PATCH 3/3] 1 --- src/view/echarts_hygiene/eP3.vue | 8 ++++---- src/view/echarts_hygiene/eP4.vue | 1 - src/view/echarts_hygiene/eP5.vue | 6 +++--- src/view/echarts_hygiene/pie.vue | 5 +++-- src/view/echarts_hygiene/pie2.vue | 5 +++-- src/view/hygiene.vue | 5 +++-- 6 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/view/echarts_hygiene/eP3.vue b/src/view/echarts_hygiene/eP3.vue index 7a3ebd5..981592d 100644 --- a/src/view/echarts_hygiene/eP3.vue +++ b/src/view/echarts_hygiene/eP3.vue @@ -1,7 +1,7 @@ @@ -27,7 +27,7 @@ let option = { }, grid: { - top: "20%", + top: "10%", left: "1%", right: "10%", bottom: "0%", @@ -41,7 +41,7 @@ let option = { formatter: function (params) { var str = ""; // 最终拼接成的字符串 var paramsLen = params.length; // 获取每项文字的个数 - var len = 4; // 每行能显示的字的个数(根据实际情况自己设置) + var len = 5; // 每行能显示的字的个数(根据实际情况自己设置) var rowNumber = Math.ceil(paramsLen / len); // 换行的话,需要显示几行,向上取整 if (paramsLen > len) { //大于设定的len就换行,不大于就不变化 @@ -67,7 +67,7 @@ let option = { textStyle: { color: "#ccc", }, - // rotate: 60, + rotate: 30, }, data: data1, }, diff --git a/src/view/echarts_hygiene/eP4.vue b/src/view/echarts_hygiene/eP4.vue index 83250eb..37897c8 100644 --- a/src/view/echarts_hygiene/eP4.vue +++ b/src/view/echarts_hygiene/eP4.vue @@ -11,7 +11,6 @@ const chart = ref(); // 创建DOM引用 const datas = { value: 92.96, - text: "留 守 儿 童" } let option = { diff --git a/src/view/echarts_hygiene/eP5.vue b/src/view/echarts_hygiene/eP5.vue index 7540f39..f220929 100644 --- a/src/view/echarts_hygiene/eP5.vue +++ b/src/view/echarts_hygiene/eP5.vue @@ -1,7 +1,7 @@ @@ -41,7 +41,7 @@ let option = { formatter: function (params) { var str = ""; // 最终拼接成的字符串 var paramsLen = params.length; // 获取每项文字的个数 - var len = 5; // 每行能显示的字的个数(根据实际情况自己设置) + var len = 6; // 每行能显示的字的个数(根据实际情况自己设置) var rowNumber = Math.ceil(paramsLen / len); // 换行的话,需要显示几行,向上取整 if (paramsLen > len) { //大于设定的len就换行,不大于就不变化 @@ -80,7 +80,7 @@ let option = { splitLine: { show: true, lineStyle: { - color: "rgba(226, 226, 226, 0.3)", + color: "rgba(226, 226, 226, 0.2)", width: 1, }, }, diff --git a/src/view/echarts_hygiene/pie.vue b/src/view/echarts_hygiene/pie.vue index e743c70..786f828 100644 --- a/src/view/echarts_hygiene/pie.vue +++ b/src/view/echarts_hygiene/pie.vue @@ -1,5 +1,5 @@