修改横向柱状图

master
夜笙歌 2 years ago
parent 4077eb91f5
commit 05508723b0

@ -176,6 +176,10 @@ const horizontalBarChart = (res, ids) => {
textBorderWidth: 2, textBorderWidth: 2,
position:'insideTopLeft', position:'insideTopLeft',
padding: [-20, 0, 0, 0], padding: [-20, 0, 0, 0],
formatter:function (params) {
console.log(dataFormat(xValue)[params[`dataIndex`]])
return dataFormat(xValue)[params[`dataIndex`]].value
}
}, },
}, },
{ {

Loading…
Cancel
Save