Google charts used our app but when i call getImageURI function.Then message display
The getImageURI is not function.All liberies included but what is problem my code
code as follows:-
var my_div = document.getElementById('chart_div');
var my_chart = new google.visualization.ChartType(chart_div);
google.visualization.events.addListener(my_chart, 'ready', function () {
my_div.innerHTML = '<img src="' + my_chart.getImageURI() + '">';
});
my_chart.draw(data);
Please suggest solution. What’s wrong with my code. i want save the chart in the image.
var chart = new google.visualization.LineChart(linechart_material);
google.visualization.events.addListener(chart, 'ready', function () {
var img = chart.getImageURI();
jQuery('#chart_image').attr('src',img);
});
chart.draw(data, options);