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 8fa2524..b67df25 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -176,6 +176,10 @@ const horizontalBarChart = (res, ids) => { textBorderWidth: 2, position:'insideTopLeft', padding: [-20, 0, 0, 0], + formatter:function (params) { + console.log(dataFormat(xValue)[params[`dataIndex`]]) + return dataFormat(xValue)[params[`dataIndex`]].value + } }, }, {