Hi,
I assume you want to do this based on a action microflow with minimum of manual activities? Do you use the AnyChart widget for the charting?
Regards,
Andre
What JavaScript library do you use to create the graph? What format is your graph? SVG? Exporting an image of a graph is available in most complex charting libraries. So, that is your best bet.
Else, I think the ‘Printscreen to PDF’ widget could be an option still. It uses an outdated version of a JavaScript library that takes care of the rendering of the image. You could try and see if the format you render is supported in a newer version of the library this widget uses?
Sadly it is not possible to use widgets inside the Mendix document template. As Ivo Sturm wrote, there is a Printscreen to PDF widget https://marketplace.mendix.com/link/component/27069 and the Templator (which afaik needs a license) https://marketplace.mendix.com/link/component/114043
You can also try to use browser print but be warned that it is a hassle to get it to work on different browsers, page orientations..