We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As an alternative to taking screenshots.
This thread explains how to export to .svg. Probably need another library to export to .pdf. Function:
function saveSvg(svgEl, name) { svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg"); var svgData = svgEl.outerHTML.replace('xlink:xlink', 'xmlns:xlink'); var preface = '<?xml version="1.0" standalone="no"?>\r\n'; var svgBlob = new Blob([preface, svgData], {type:"image/svg+xml;charset=utf-8"}); var svgUrl = URL.createObjectURL(svgBlob); var downloadLink = document.createElement("a"); downloadLink.href = svgUrl; downloadLink.download = name; document.body.appendChild(downloadLink); downloadLink.click(); document.body.removeChild(downloadLink); }
Note one little change: .replace('xlink:xlink', 'xmlns:xlink'). Looks like the xlink namespace is deprecated, which would be a Webcharts update.
.replace('xlink:xlink', 'xmlns:xlink')
xlink
The text was updated successfully, but these errors were encountered:
PDFKit should do the trick.
Sorry, something went wrong.
No branches or pull requests
As an alternative to taking screenshots.
This thread explains how to export to .svg. Probably need another library to export to .pdf. Function:
Note one little change:
.replace('xlink:xlink', 'xmlns:xlink')
. Looks like thexlink
namespace is deprecated, which would be a Webcharts update.The text was updated successfully, but these errors were encountered: