Hi Daniel, thanks for fast reply On Monday, January 30, 2017 at 4:17:27 PM UTC, Daniel LaLiberte wrote: > > Sorry, but there are a number of options and methods that are not > available with the Material charts. > > https://github.com/google/google-visualization-issues/issues/2143 > > > On Mon, Jan 30, 2017 at 11:01 AM, Jonathan Duong <[email protected] > <javascript:>> wrote: > >> 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] >> <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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 >> >> <https://groups.google.com/d/msgid/google-visualization-api/d2f608e0-681a-4e5b-9c32-6a200fe5d063%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> > [email protected] <javascript:> 5CC, Cambridge MA >
-- 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/45089040-f6fb-41fa-84b7-477292ed71d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
