Question

im trying to export a Google chart to a PDF using a template but it does not accept javascript code. Any idea?

Was it helpful?

Solution

You have to get the chart as an image and then you can inline it in the PDF for the grails rendering plugin. I haven't got an example to hand, but basically it's :

Grails rendering plugin does not render images when deployed

If you are using Google's "image charting" API then it's quite easy. Less so with the newer javascript/svg ones.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top