im trying to export a Google chart to a PDF using a template but it does not accept javascript code. Any idea?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.