找回密码
 立即注册

QQ登录

只需一步,快速开始

allen-an
注册会员   /  发表于:2023-11-28 17:46:15
2#
  1. const imgUrl = chart.chartView.getConnectedDataURL({
  2.             type: 'png',
  3.             backgroundColor: '#fff',
  4.             excludeComponents: ['toolbox']
  5.           });
  6.           const shape = activeSheet.shapes.addPictureShape(`img${chartIndex}`, imgUrl, 0, 0, 0, 0);
  7.           shape.startRow(startRow);
  8.           shape.startColumn(0);
  9.           shape.endColumn(8);
  10.           shape.endRow(startRow + 10);
复制代码
回复 使用道具 举报
最佳答案
最佳答案
Lynn.Dou讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2023-11-28 17:37:47
来自 12#
本帖最后由 Ellia.Duan 于 2023-12-28 17:45 编辑

您可以先通过setTimeout异步处理下,如下图代码:
image.png508776549.png

回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部