From caa6f3ad01b13a7a6d903e2254992f34d4c515fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 14 Jul 2022 17:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/js/echartsCommon.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js index 05bb040..99f5943 100644 --- a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js +++ b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js @@ -1909,7 +1909,7 @@ const multipleVerticalBarChart = function (data, id) { type: "bar", data: data.yDataTwo, barWidth: 0.5 * vw, - barGap: 0.2, //柱间距离 + barGap: 0.5, //柱间距离 label: { //图形上的文本标签 normal: { @@ -1936,7 +1936,7 @@ const multipleVerticalBarChart = function (data, id) { type: "bar", data: data.yDataThree, barWidth: 0.5 * vw, - barGap: 0.2, //柱间距离 + barGap: 0.5, //柱间距离 label: { //图形上的文本标签 normal: { @@ -1961,7 +1961,7 @@ const multipleVerticalBarChart = function (data, id) { ], }; - if (data?.xName?.length >= 3) { + if (data?.xName?.length >= 6) { option.dataZoom.push({ show: true, type: 'slider', @@ -1969,7 +1969,7 @@ const multipleVerticalBarChart = function (data, id) { xAxisIndex: 0, height: 12, start: 0, - end: 1 / (data.xName.length / 3) * 100, + end: 1 / (data.xName.length / 6) * 100, textStyle: { fontSize: 0, color:'rgba(0,0,0,0)'