{"action":"created","issue":{"url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/9","labels_url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/9/comments","events_url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/9/events","html_url":"https://github.com/rickbergfalk/sqlpad/issues/9","id":58414662,"number":9,"title":"Enhancement - Save Chart Images","user":{"login":"deepvoice","id":6110355,"avatar_url":"https://avatars.githubusercontent.com/u/6110355?v=3","gravatar_id":"","url":"https://api.github.com/users/deepvoice","html_url":"https://github.com/deepvoice","followers_url":"https://api.github.com/users/deepvoice/followers","following_url":"https://api.github.com/users/deepvoice/following{/other_user}","gists_url":"https://api.github.com/users/deepvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/deepvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepvoice/subscriptions","organizations_url":"https://api.github.com/users/deepvoice/orgs","repos_url":"https://api.github.com/users/deepvoice/repos","events_url":"https://api.github.com/users/deepvoice/events{/privacy}","received_events_url":"https://api.github.com/users/deepvoice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T21:44:04Z","updated_at":"2015-02-20T23:04:38Z","closed_at":null,"body":"Could we add something like this to save the chart image too?\r\n\r\n\r\n    function SaveChart()\r\n    { TheCanvas=$(\"#canvas\")[0];\r\n    if(TheCanvas.toBlob) {\r\n    TheCanvas.toBlob( function (blob) {\r\n    saveAs(blob, \"chart.png\");\r\n    }, 'image/png' ); }\r\n\r\n    if(!TheCanvas.toBlob){\r\n    var dataURL =TheCanvas.toDataURL('image/png') var w=window.open('about:blank','image from canvas');\r\n    w.document.write(\"Save As Image\"); }\r\n\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/comments/75335926","html_url":"https://github.com/rickbergfalk/sqlpad/issues/9#issuecomment-75335926","issue_url":"https://api.github.com/repos/rickbergfalk/sqlpad/issues/9","id":75335926,"user":{"login":"deepvoice","id":6110355,"avatar_url":"https://avatars.githubusercontent.com/u/6110355?v=3","gravatar_id":"","url":"https://api.github.com/users/deepvoice","html_url":"https://github.com/deepvoice","followers_url":"https://api.github.com/users/deepvoice/followers","following_url":"https://api.github.com/users/deepvoice/following{/other_user}","gists_url":"https://api.github.com/users/deepvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/deepvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepvoice/subscriptions","organizations_url":"https://api.github.com/users/deepvoice/orgs","repos_url":"https://api.github.com/users/deepvoice/repos","events_url":"https://api.github.com/users/deepvoice/events{/privacy}","received_events_url":"https://api.github.com/users/deepvoice/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T23:04:38Z","updated_at":"2015-02-20T23:04:38Z","body":"This looks promising: https://github.com/exupero/saveSvgAsPng"}}