Most (if not all) email clients do not support javascript in emails. You can create an image from the chart by drawing it in a browser and calling the #getImageURI method. This creates an image/octet stream that you can save as a .png file or use as the src of an <img> tag, which you can then include in the email. If you need to send the interactive version of the chart, your only option is to link to a web page that hosts the chart.
On Thursday, August 7, 2014 10:39:28 PM UTC-4, ABHI wrote: > > Hi, > Im trying to send a html email via Java api. > > message.setContent(getMessageBody(), "text/html"); > > Where in the getMessageBody() constructs html with the javascript and > chart embedded. > > The HTML part is displayed fine in the mail received. However the > javascript part / Charts part is not executed. > > Could you please let me know if there is anything Im missing. > > > Regards > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
