- const imgUrl = chart.chartView.getConnectedDataURL({
- type: 'png',
- backgroundColor: '#fff',
- excludeComponents: ['toolbox']
- });
- const shape = activeSheet.shapes.addPictureShape(`img${chartIndex}`, imgUrl, 0, 0, 0, 0);
- shape.startRow(startRow);
- shape.startColumn(0);
- shape.endColumn(8);
- shape.endRow(startRow + 10);
复制代码 |