Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top