Skip to content

Save your D3 graphs and other SVG as an image, without a server-side component

License

Notifications You must be signed in to change notification settings

Causata/svgenie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svgenie

A cheeky script to let you save D3 graphs, and other SVG documents as a PNG without needing a server component

This adds a convenience wrapper to gabelerner's canvg to make it really easy to save SVG documents as images.

To get started, you'll need to include rgbcolor.js, canvg.js and svgenie.js, in that order. Then make a call like the one below somewhere in your app:

svgenie.save( "theIdOfMySvgElement", {
    name : "them-chickens-jackin-my-style.png"
})

...and you're done.

About

Save your D3 graphs and other SVG as an image, without a server-side component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published