Hi,
I'm just trying to create a PNG image of the material line chart but
everytime i call getImageURI() function i get the error in console
declaring it to not be a function.
As far as im aware the function is available for material line chart, its
under the line chart references page in the methods section.
Am i doing something wrong?
var options = {
chart:{
title:,
subtitle:
}
};
var view = new google.visualization.DataView(datatable);
var chart_div = document.getElementById('myPieChart');
var chart = new google.charts.Line(chart_div);
google.visualization.events.addListener(chart, 'ready', function () {
chart_div.innerHTML = '<img src="' + chart.getImageURI() + '">';
console.log(chart_div.innerHTML);
console.log("chart saved");
});
chart.draw(view,options);
Much help would be appreciated thanks.
--
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/d2f608e0-681a-4e5b-9c32-6a200fe5d063%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.