diff --git a/src/view/echarts_education/edCSR.vue b/src/view/echarts_education/edCSR.vue index 13e72b0..d151157 100644 --- a/src/view/echarts_education/edCSR.vue +++ b/src/view/echarts_education/edCSR.vue @@ -157,6 +157,14 @@ const option = { data: data, barWidth: 20, type: "bar", + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, }, // { // // name: "上门服务次数", diff --git a/src/view/echarts_education/pie.vue b/src/view/echarts_education/pie.vue index 241015d..1d34abc 100644 --- a/src/view/echarts_education/pie.vue +++ b/src/view/echarts_education/pie.vue @@ -136,6 +136,14 @@ const getOption = () => { type: "bar", data: data.list[1], barWidth: "18%", + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { @@ -154,6 +162,14 @@ const getOption = () => { type: "bar", data: data.list[0], barWidth: "18%", + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { diff --git a/src/view/echarts_work/eP1.vue b/src/view/echarts_work/eP1.vue index a61396b..ef6503f 100644 --- a/src/view/echarts_work/eP1.vue +++ b/src/view/echarts_work/eP1.vue @@ -158,6 +158,14 @@ const option = { stack: "Total", symbol: "emptyCircle", symbolSize: 10, + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { borderColor: "#00FCFF", borderWidth: 1, @@ -170,6 +178,14 @@ const option = { data: data, barWidth: 20, type: "bar", + label:{ + show:true, + position:'insideTop', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { diff --git a/src/view/echarts_work/eP2.vue b/src/view/echarts_work/eP2.vue index b22d97a..b97f38e 100644 --- a/src/view/echarts_work/eP2.vue +++ b/src/view/echarts_work/eP2.vue @@ -184,6 +184,14 @@ const option = { stack: "Total", symbol: "emptyCircle", symbolSize: 10, + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { borderColor: "#00FCFF", borderWidth: 1, @@ -196,6 +204,14 @@ const option = { data: data, barWidth: 20, type: "bar", + label:{ + show:true, + position:'insideTop', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { diff --git a/src/view/echarts_work/ePjz.vue b/src/view/echarts_work/ePjz.vue index da316a5..17659bd 100644 --- a/src/view/echarts_work/ePjz.vue +++ b/src/view/echarts_work/ePjz.vue @@ -188,6 +188,7 @@ const option = { symbolOffset: [0, 1], // 左 上 z: 12, symbol: "circle", // 图形形状为圆 + itemStyle: { color: "rgba(38, 191, 254, 1)", // color: "red", @@ -203,6 +204,14 @@ const option = { stack: "Total", symbol: "emptyCircle", symbolSize: 10, + label:{ + show:true, + position:'top', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { borderWidth: 1, color: "rgba(36, 104, 255, 1)", @@ -216,6 +225,14 @@ const option = { data: data, barWidth: 30, type: "bar", + label:{ + show:true, + position:'insideTop', + color:'#ffffff', + formatter:function(data){ + return data.value + } + }, itemStyle: { // borderColor: "#00FCFF", // borderWidth: 1,