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 2019/06/04 13:56:15 UTC

[GitHub] [incubator-echarts] MINDoSOFT opened a new issue #10618: SaveAsImage add chart watermark

MINDoSOFT opened a new issue #10618: SaveAsImage add chart watermark
URL: https://github.com/apache/incubator-echarts/issues/10618
 
 
   ### What problem does this feature solve?
   I need to add some customization on the chart (e.g. watermark), that needs to happen only when the chart's saveAsImage toolbox button is clicked.
   
   ### What does the proposed API look like?
   I believe this can be fixed with 2 different ways.
   
   One way is to add a backgroundImage option is saveAsImage chart option.
   
   https://ecomfe.github.io/echarts-doc/public/en/option.html#toolbox.feature.saveAsImage
   
   this backgroundImage will be added as background to the chart only in the exported image
   produced when the chart's saveAsImage toolbox button is clicked.
   
   The other way I can think of is to add two events on the chart called saveAsImageBefore/After (like restore event exists)
   
   https://ecomfe.github.io/echarts-doc/public/en/api.html#events.restore
   
   saveAsImageBefore will have some code to draw the watermark, and saveAsImageAfter will hide the watermark.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org