Hi!
I’m using amCharts in my project and the API works well, but I have a requirement that is print the chart image in a report generated by Jasper.
I already have a solution. When the user clicks on the button to generate the report, through a Javascript function, I convert the chart image to PNG(AmCharts.charts[0].export.capture -> toPGN()) and send the image via ajax request to my RestController.
In my RestController, I convert the image to byte array and call the Jasper API passing the chart image byte array through a parameter to generate the report.
This solution works, but I want to know if you have other ideas to print a amCharts in a Jasper report.
Thanks.