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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to