chartist
chartist copied to clipboard
exporting charts to one excel file
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
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:
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!
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!