So i have following this article
https://developers.google.com/chart/interactive/docs/printing for exporting
my chart into png.
But i have little problem when i put this code
document.getElementById('png').outerHTML = '<a href="' + chart.getImageURI()
+ '">Printable version</a>';
,
i dont know where that code must be placed.
My code for exporting chart :
google.visualization.events.addListener(chart, 'ready', function() {
chart_div.innerHTML = '<img src="' + chart.getImageURI() + '">';
console.log(chart_div.innerHTML);
});
I really new on this, and i need your help.
Thank you :)
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/c5f38705-43fb-4d85-8def-a3841ba01192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.