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.