chartist icon indicating copy to clipboard operation
chartist copied to clipboard

exporting charts to one excel file

Open sam13591980 opened this issue 7 years ago • 2 comments

Hello everyone, I was searching net to find a proper javascript chart generator in server side and export the result into Excel file that could be downloaded by the client until I found chartist-js but still I am not sure how can I export my charts in to one excel file.

Thanks

sam13591980 avatar Oct 31 '17 01:10 sam13591980

I was going to create a new issue, but I feel it'd be better to add my comments here.

I'm working on a package at the moment which will allow this, but I've hit a bit of a roadblock as Chartist generates its charts in an <svg> element with external styles. I've tried converting the computed styles to inline styles, then passed the SVG string into canvg to translate it to a <canvas> element but I keep getting the following error come back from canvg:

screen shot 2017-11-17 at 11 44 15

Unfortunately no matter what I try with manipulating the namespaces I can't get the error to go away.

@gionkunz Is exporting charts something you have managed to do? or will any changes be made to improve support for exporting charts?

My end goal is to convert svg to canvas then generate a base64 string from the canvas element, open to other suggestions if anyone has any!

clnt avatar Nov 17 '17 11:11 clnt

Hello @sam13591980, @clnt 👋

Chartist has recently been updated to version 1.0 with some new exciting changes like ESM and TypeScript support. The migration guide can be found right here.

Please let me know if the question is still relevant to you so we can further look into it!

Arantiryo avatar Oct 31 '22 16:10 Arantiryo