const model = myChart.getModel('series', 0); const view = myChart.getViewOfComponentModel(model); const group = view.group; const {x, y, width, height} = group.getBoundingRect()
获取柱子位置
1 2 3 4
let axisModel = globalModel.getComponent('axis') let xScale = axisModel[0].getScale() let yScale = axisModel[1].getScale() let bandWidth = xScale.bandwidth()