Created
January 6, 2013 13:05
-
-
Save yorzi/4467012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg = $('svg').parent().html() | |
canvg('canvas', svg) | |
canvas = document.getElementById("canvas") | |
img_PNG = Canvas2Image.saveAsPNG(canvas, true) | |
$('.chart').html(img_PNG) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What if i have multiple charts or multiple svg elements on my page??
How to capture the specific chart??