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 8cf5959..8fa2524 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -79,7 +79,7 @@ const horizontalBarChart = (res, ids) => { }, grid: { top: "9%", - left: "-30%", + left: "0%", right: "4%", bottom: "3%", containLabel: true, @@ -137,24 +137,24 @@ const horizontalBarChart = (res, ids) => { data: dataFormat(yValue), }, - { - type: "category", - inverse: true, - offset: -10, - position: "left", - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - interval: 0, - color: ["#A8A6AB"], - align: "left", - verticalAlign: "bottom", - lineHeight: 32, - fontSize: 12, - }, - data: dataFormat(xValue), - }, + // { + // type: "category", + // inverse: true, + // offset: -10, + // position: "left", + // axisTick: "none", + // axisLine: "none", + // show: true, + // axisLabel: { + // interval: 0, + // color: ["#A8A6AB"], + // align: "left", + // verticalAlign: "bottom", + // lineHeight: 32, + // fontSize: 12, + // }, + // data: dataFormat(xValue), + // }, ], series: [ { @@ -170,11 +170,12 @@ const horizontalBarChart = (res, ids) => { }, }, label: { - show: false, + show: true, fontSize: 12, color: "#A8A6AB", textBorderWidth: 2, - padding: [2, 0, 0, 0], + position:'insideTopLeft', + padding: [-20, 0, 0, 0], }, }, {