Save Chartkick Chart As Image Or In Pdf Using Python, Flask And Pisa/ Xhtml2pdf
My app is in python using the flask framework. I have a chart that I've generated with chartlink. I'd like to include it on a pdf that I'm outputting with pisa. Is this possible? I
Solution 1:
According to the chartkick documentation you can give users the option to download an image of the chart.
You will have to include canvg before chartkick.js.
Another option would be to generate the image on a PhantomJS instance and save the screenshot/image.
Post a Comment for "Save Chartkick Chart As Image Or In Pdf Using Python, Flask And Pisa/ Xhtml2pdf"