question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

While renderer as SVG the SaveAsImage png file can't use

See original GitHub issue

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 [其他信息]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
davidpham87commented, Jan 22, 2019

Any update on this issue? 😃

2reactions
plainheartcommented, Nov 3, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

While renderer as SVG the SaveAsImage png file can't use
Currently, only SVG file can be saved (with toolbox, set type to be svg ) when rendering in SVG. We will improve it...
Read more >
Save svg image rendered by a javascript to local disk as .png file
Here are the steps that worked for me: Use JavaScript to serialize the SVG content. var svgString = new XMLSerializer().serializeToString( ...
Read more >
Cannot Find PNG Option During Save As - Beginners' Questions
Shortcut: Ctrl+Shift+E. There is even a button for it, on the left of the undo button. Then a window pops up with all...
Read more >
SVG vs PNG: What Are the Differences and When to Use Them
SVGs must be rendered by the browser when the page is loaded, so using an excess of them or a large file with...
Read more >
Save SVG as an Image - TechSlides
This will not work as SVG is loading external images which are not contained within the SVG file. The good news is that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found