To generate PDF of Graph

I have created graph based on my data. I would like to create a PDF document that displays graphs. So here I used “Printscreen to PDF” widget to generating the PDF but here for Graph it’s not working properly and I was also tried in Document Template. It’s not worked. So please help me to generate pdf of graph.
3 answers

You can use the JFree charts module. The typical usage scenario says ‘Create a .png image of a chart and use it in a pdf export’. There is one widget in appstore =>

You need to do the chart configuration, should map the non persistable entity, in the charts module. But currently this widget will support only for few charts like bar, Line and pie charts.



There is one widget in the appstore that stores the graph so it can be used in document templates:

May be you can use that one or adapt it to your own needs.





I used the ChartJS Widget ( feature to create a Base64 image, and used that in the PDF.