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/06/05 05:44:32 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #12755: Show the chart title only in saved image (jpeg or png)

Ovilia commented on issue #12755:
URL: https://github.com/apache/incubator-echarts/issues/12755#issuecomment-639272036


   You should create a custom `feature` (doc: [feature](https://echarts.apache.org/en/option.html#toolbox.feature)) rather than get the event, because even if you can get the event, the image has already been saved and there is no use to update title.
   So you should use a custom feature, and in the `onclick` callback, call `chart.setOption` to add title and then [`chart.getDataURL()`](https://echarts.apache.org/en/api.html#echartsInstance.getDataURL) to get the image in base64 format.


----------------------------------------------------------------
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



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