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.
option = {
}
Currently, only SVG file can be saved (with toolbox, set type to be svg) when rendering in SVG. We will improve it later to save as png.
@Ovilia Yes, now if I manually change the file extenstion from png to svg, the image file can open and view normally. @Ovilia Thanks for your help.
When i set renderer to svg and use saveAsImage tool the resulting SVG goes like this
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" style="position: absolute; left: 0px; top: 0px;" width="520" height="620"><path d="M 52 470.5 L 400 470.5" fill="none" stroke="
Which is totally invalid
Any update on this issue? :-)
Have the same issue as commented by @vlakam , Got my exported svg as
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="1366" height="562" style="user-select: none; position: absolute; left: 0px; top: 0px;"><path d="M 683 140.5 L 683 84.3 A 196.7 196.7 0 0 1 827.0271 147.0333 L 785.8765 185.3095 A 140.5 140.5 0 0 0 683 140.5 Z" fill="
Any updates?
Most helpful comment
Any update on this issue? :-)