At first I was like
http://i.imgur.com/mfp7ts8.gifv
But then I tried an SVG and it actually worked. Currently, to export a C3 generated chart to PNG I have to
- get svgData using XMLSerializer().serializeToString
- create canvas
- fill canvas with svgData processed with canvg.js
- create new image
- set image's src attribute with canvas.toDataURL
- set image's download attribute and simulate a click on it
Perhaps this can prove useful to simplify my workflow.