diff --git a/src/view/echarts_sy/zwfw1.vue b/src/view/echarts_sy/zwfw1.vue index 3270180..40a7c55 100644 --- a/src/view/echarts_sy/zwfw1.vue +++ b/src/view/echarts_sy/zwfw1.vue @@ -106,14 +106,14 @@ const data1 = [ ]; const option = { - legend: [ + legend: { itemWidth: 10, itemHeight: 10, - itemGap: 20, + itemGap: 10, icon: "circle", - data: ["2.0收件数"], - bottom: "20%", + data: ["2.0收件数","",'总收件数'], + bottom: "3%", width: 380, textStyle: { color: "#ffffff", // 修改图例颜色为红色 @@ -128,28 +128,7 @@ const option = { return params + " " + num; }, }, - { - itemWidth: 10, - itemHeight: 10, - itemGap: 20, - icon: "circle", - data: ["总收件数"], - bottom: "5%", - width: 380, - textStyle: { - color: "#ffffff", // 修改图例颜色为红色 - }, - formatter: function (params) { - var num = ""; - for (let i = 0; i < dataList.length; i++) { - if (dataList[i].name == params) { - num = dataList[i].value; - } - } - return params + " " + num; - }, - }, - ], + title: [ { text: "90%", diff --git a/src/view/echarts_sy/zwfw2.vue b/src/view/echarts_sy/zwfw2.vue index b9545e4..06c7ba4 100644 --- a/src/view/echarts_sy/zwfw2.vue +++ b/src/view/echarts_sy/zwfw2.vue @@ -100,14 +100,14 @@ const data1 = [ ]; const option = { - legend: [ + legend: { itemWidth: 10, itemHeight: 10, - itemGap: 20, + itemGap: 10, icon: "circle", - data: ["超期受理数"], - bottom: "20%", + data: ["超期受理数","",'应受理数'], + bottom: "3%", textStyle: { color: "#ffffff", // 修改图例颜色为红色 @@ -122,27 +122,8 @@ const option = { return params + " " + num; }, }, - { - itemWidth: 10, - itemHeight: 10, - itemGap: 20, - icon: "circle", - data: ["应受理数"], - bottom: "5%", - textStyle: { - color: "#ffffff", // 修改图例颜色为红色 - }, - formatter: function (params) { - var num = ""; - for (let i = 0; i < dataList.length; i++) { - if (dataList[i].name == params) { - num = dataList[i].value; - } - } - return params + " " + num; - }, - }, - ], + + title: [ { text: "90%", diff --git a/src/view/echarts_sy/zwfw3.vue b/src/view/echarts_sy/zwfw3.vue index afe03da..bb9844c 100644 --- a/src/view/echarts_sy/zwfw3.vue +++ b/src/view/echarts_sy/zwfw3.vue @@ -100,14 +100,14 @@ const data1 = [ ]; const option = { - legend: [ + legend: { itemWidth: 10, itemHeight: 10, - itemGap: 20, + itemGap: 10, icon: "circle", - data: ["超期办理数"], - bottom: "20%", + data: ["超期办理数","","应办理数"], + bottom: "3%", width: 380, textStyle: { color: "#ffffff", // 修改图例颜色为红色 @@ -122,28 +122,7 @@ const option = { return params + " " + num; }, }, - { - itemWidth: 10, - itemHeight: 10, - itemGap: 20, - icon: "circle", - data: ["应办理数"], - bottom: "5%", - width: 380, - textStyle: { - color: "#ffffff", // 修改图例颜色为红色 - }, - formatter: function (params) { - var num = ""; - for (let i = 0; i < dataList.length; i++) { - if (dataList[i].name == params) { - num = dataList[i].value; - } - } - return params + " " + num; - }, - }, - ], + title: [ { text: "90%",