To generate PDF of Graph

-1
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.
asked
3 answers
1

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 => https://appstore.home.mendix.com/link/app/3011/

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.

 

answered
0

There is one widget in the appstore that stores the graph so it can be used in document templates: https://appstore.home.mendix.com/link/app/3011/TimeSeries/JFree-Charts-(.png-images)

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

Regards,

Ronald

 

answered
0

I used the ChartJS Widget (https://appstore.home.mendix.com/link/app/1712/) feature to create a Base64 image, and used that in the PDF.

answered