canvas2svg icon indicating copy to clipboard operation
canvas2svg copied to clipboard

Can this be used with chart.js ? [question]

Open bockoblur opened this issue 7 years ago • 3 comments

Hi. I am trying to use this library to export a chart created with chart.js to SVG, but it seems that chart.js can't use 'fake' context created by C2S. I am getting error_: "Failed to create chart: can't acquire context from the given item"_ when I try to draw a chart in C2S context.

See Codepen here for full example.

My Stackoverflow question is here.

Is there a way around this? Or am I missing something? Thanks.

bockoblur avatar Aug 08 '17 15:08 bockoblur

@bockoblur I have the same problem. Did you find a solution?

tamaccount avatar Oct 11 '17 18:10 tamaccount

Not yet. Still hoping, though.

bockoblur avatar Oct 11 '17 18:10 bockoblur

Just got a pretty good answer here! https://stackoverflow.com/a/47943363/2678576

bockoblur avatar Dec 24 '17 09:12 bockoblur