diff --git a/src/view/echarts_hygiene/eP7.vue b/src/view/echarts_hygiene/eP7.vue
index ee8495f..41f42a6 100644
--- a/src/view/echarts_hygiene/eP7.vue
+++ b/src/view/echarts_hygiene/eP7.vue
@@ -127,6 +127,14 @@ data.option = {
type: "bar",
data: data.list,
barWidth: 20,
+ label: {
+ show: true,
+ color: "#ffffff",
+ position:'top',
+ formatter: function (data) {
+ return data.value;
+ },
+ },
itemStyle: {
normal: {
color: function (params) {
diff --git a/src/view/echarts_hygiene/gxy.vue b/src/view/echarts_hygiene/gxy.vue
index 939c142..2f74bca 100644
--- a/src/view/echarts_hygiene/gxy.vue
+++ b/src/view/echarts_hygiene/gxy.vue
@@ -94,6 +94,14 @@ const getOption = () => {
symbol: "emptyCircle",
symbolSize: 10,
+ label: {
+ show: true,
+ color: "#ffffff",
+ position:'top',
+ formatter: function (data) {
+ return data.value;
+ },
+ },
itemStyle: {
borderColor: "#00FCFF",
borderWidth: 1,
diff --git a/src/view/echarts_hygiene/pie.vue b/src/view/echarts_hygiene/pie.vue
index d780f89..331d81c 100644
--- a/src/view/echarts_hygiene/pie.vue
+++ b/src/view/echarts_hygiene/pie.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/view/echarts_yl/pie.vue b/src/view/echarts_yl/pie.vue
index a2e3d9e..bab5a73 100644
--- a/src/view/echarts_yl/pie.vue
+++ b/src/view/echarts_yl/pie.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/view/echarts_yl/pie2.vue b/src/view/echarts_yl/pie2.vue
index d8f0f28..e298927 100644
--- a/src/view/echarts_yl/pie2.vue
+++ b/src/view/echarts_yl/pie2.vue
@@ -53,7 +53,7 @@ const getOption = () => {
},
},
grid: {
- top:'25%',
+ top: "25%",
left: "1%",
right: "10%",
bottom: "0%",
@@ -109,6 +109,11 @@ const getOption = () => {
{
name: "城乡养老保险金额",
type: "value",
+ min: 0, // 设置Y轴最小值
+ max: function (value) {
+ // 自定义Y轴最大值,确保数据点显示在顶部
+ return Math.ceil(Math.max(value.max, value.max * 1.4) / 50) * 50;
+ },
nameTextStyle: {
// 设置Y轴名称的样式
fontSize: 14, // 这里设置字体大小为20
@@ -162,6 +167,14 @@ const getOption = () => {
borderWidth: 1,
color: "#00FCFF",
},
+ label: {
+ show: true,
+ color: "#ffffff",
+ position: "bottom",
+ formatter: function (data) {
+ return data.value;
+ },
+ },
data: data.list1,
},
{
@@ -176,7 +189,14 @@ const getOption = () => {
borderWidth: 1,
color: "#2468FF",
},
-
+ label: {
+ show: true,
+ color: "#ffffff",
+ position: "bottom",
+ formatter: function (data) {
+ return data.value;
+ },
+ },
data: data.list2,
},
],