You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/12/11 05:17:01 UTC

[GitHub] Ovilia commented on issue #9548: echarts下载的时候添加水印

Ovilia commented on issue #9548: echarts下载的时候添加水印
URL: https://github.com/apache/incubator-echarts/issues/9548#issuecomment-446075601
 
 
   1. Add a custom toolbox feature http://echarts.baidu.com/option.html#toolbox.feature
   2. In `onclick`, [get canvas in the form of base64](http://echarts.baidu.com/api.html#echartsInstance.getDataURL)
   3. Create a new canvas and use `drawImage` to draw watermark onto the original chart
   4. [Export canvas](https://stackoverflow.com/questions/10673122/how-to-save-canvas-as-an-image-with-canvas-todataurl)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org