Incubator-echarts: While renderer as SVG the SaveAsImage png file can't use

Created on 9 Feb 2018  ·  5Comments  ·  Source: apache/incubator-echarts

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 [版本及环境]

  • ECharts version [ECharts 版本]: 4.02
  • Browser version [浏览器类型和版本]: Chrome 63.0.3239.132
  • OS Version [操作系统类型和版本]: Win10

Expected behaviour [期望结果]

ECharts option [ECharts配置项]


option = {

}

Other comments [其他信息]


SVG enhancement

Most helpful comment

Any update on this issue? :-)

All 5 comments

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?

Was this page helpful?
0 / 5 - 0 ratings