Material Line chart getImageURI() is not function

1,309 views
Skip to first unread message

Jonathan Duong

unread,
Jan 30, 2017, 11:01:41 AM1/30/17
to Google Visualization API
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.

Daniel LaLiberte

unread,
Jan 30, 2017, 11:17:27 AM1/30/17
to Google Visualization API
Sorry, but there are a number of options and methods that are not available with the Material charts.   



--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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.



--

Jonathan Duong

unread,
Jan 30, 2017, 11:22:24 AM1/30/17
to Google Visualization API
Hi Daniel, thanks for fast reply
To post to this group, send email to google-visua...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages