简体   繁体   中英

Draw chart.js as svg

Does anyone know how to edit this solution: Exporting chart.js charts to svg using canvas2svg.js

so the SVG will be drawn inline the HTML-document and not just as a console.log?

Best

我使用了这一行,所以它起作用了:

document.getElementById("SVG-container-name").innerHTML = svgContext.getSerializedSvg(true);

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM