You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/01/20 07:56:47 UTC

[GitHub] [incubator-echarts] yaoguoba commented on issue #12094: getDataURL 不应该依赖于动画,并且提供参数设置图片大小

yaoguoba commented on issue #12094: getDataURL 不应该依赖于动画,并且提供参数设置图片大小
URL: https://github.com/apache/incubator-echarts/issues/12094#issuecomment-576151046
 
 
   > 你好,没太明白你的需求,能详细描述下需要这样做的背景么?
   
   不是背景,我的页面上有个导出按钮,导出数据的同时要把图表也导出到文件中。
   目前我的做法是把图片已Base64形式传回API端,然后生成到文件中。
   
   但是,页面上是分数据视图和图表视图切换的,当数据视图时,也可以执行导出。
   此时,图表处于Display: none状态
   1、EChart获取不到宽度,所以默认设置为100px。
        虽然可以通过resize设置图片大小,但是同时把页面上的图表尺寸改了,我并不想修改。
        所以希望能在getDataURL时指定图片大小,跟页面上的图表大小无关。
   2、动画未执行,图表内容挤在一起

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org