From 1167b177b8f9a83ee3b785de607cc605bd4bc814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 30 Sep 2022 11:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=93=9D=E5=86=85=E8=83=86?= =?UTF-8?q?=E6=88=90=E5=9E=8B=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/js/common/echarts.common.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/productionboard/src/main/resources/static/js/common/echarts.common.js b/productionboard/src/main/resources/static/js/common/echarts.common.js index 10fb100..8cf5959 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -16,7 +16,7 @@ const horizontalBarChart = (res, ids) => { const xValue = res.map(val => val.xValue) const yValue = res.map(val => val.yValue) - //参考:https://www.makeapie.com/editor.html?c=xqjNqqjc_U + let seriesName = "产量"; let attackSourcesColor = [ @@ -54,10 +54,7 @@ const horizontalBarChart = (res, ids) => { let stationData = []; let values = []; - // res.forEach(function (it, index) { - // stationData.push(it.station); - // values.push(it.value); - // }); + function dataFormat(data) { let arr = []; @@ -82,7 +79,7 @@ const horizontalBarChart = (res, ids) => { }, grid: { top: "9%", - left: "-9%", + left: "-30%", right: "4%", bottom: "3%", containLabel: true, @@ -344,7 +341,6 @@ const threeDimensionalCylindrical = (res, ids) => { let mycharts = echarts.init(ids); const xValue = res.map(val => val.materialName) const yValue = res.map(val => val.lineStoreAmount) - let barTopColor = ["#02c3f1"]; let barBottomColor = [ "rgba(2,195,241,0.1)",