I'm using d3.js to create a chart which I want to some how export in vector format to edit in illustrator. Is this possible? This is a snippet of the code that's generated:
There are more complicated methods involving node.js and server-side rendering but a quick, easy way is to just copy the svg element from the DOM, paste it into a file and save it with the extension .svg
After that you can open it in a vector editor.
你可以试试这个: saveSvgAsPng
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.