Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top