New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While renderer as SVG the SaveAsImage png file can't use #7763
Comments
Currently, only SVG file can be saved (with toolbox, set |
When i set renderer to svg and use saveAsImage tool the resulting SVG goes like this Which is totally invalid |
Any update on this issue? :-) |
Have the same issue as commented by @vlakam , Got my exported svg as |
I'm also interested in saving images as png when using the Is this on the roadmap? |
@hughess Hi, it looks not very hard to implement and this feature could make the SVG renderer better. I'm going to take a try. |
@plainheart do you know what would need to be done to enable this? I might be able to take a look at it and contribute (depending on how difficult it is) |
@hughess Glad to see you would like to help implement this feature! I'm sorry that I almost have forgotten it. We will mainly need to improve the [1] To export the images of png/jpeg type, it should be necessary to create a temporary canvas to draw the SVG image and export it in other types via the |
Thanks @plainheart. As a first step to understand how it would work, I did the following:
This must be an inefficient way of doing it, but it works for our immediate use case. I plan to learn more about creating a temporary canvas from within ECharts so I can contribute back to the project. |
One-line summary [问题简述]
when we use renderer:'svg' to init the echart as following
echarts.init(element[0],theme,{renderer: 'svg'});
the SaveAsImage echart.png file can't use.
Version & Environment [版本及环境]
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
Other comments [其他信息]
The text was updated successfully, but these errors were encountered: