Currently only core charts and geocharts can be converted to PNGs, so (for the time being) you're out of luck. We'll make annotation charts printable at some point, but I can't guarantee when.
Jon On Wed, Feb 19, 2014 at 5:04 AM, doctorcrypto <[email protected]>wrote: > Just started working with this, so for now I've just pasted the > getImageURI line in from the API documentation > > The relevant code is below .. everything else works fine .. error is > unknown method .. so probably more important to check the google.load line > than anything else. > > google.load('visualization', '1.1', {'packages':['annotationchart']}); > > var chart; > function initialize() > { > chart = new > google.visualization.AnnotationChart(document.getElementById('visualization')); > } > > function queryResponse(){ > ... > chart.draw(response.getDataTable(), {displayAnnotations:true, > scaleType:'allmaximized', scaleColumns:[0, 1]}); > chart.setVisibleChartRange(null,null); > document.getElementById('btnSubmitQuery').disabled = false; > document.getElementById('png').outerHTML = '<a href="' + > chart.getImageURI() + '">Printable version</a>'; > } > > > On Wednesday, 19 February 2014 09:54:33 UTC, [email protected] wrote: > >> It's getImageURI(). Can you post your code? >> >> Jon >> >> >> On Wed, Feb 19, 2014 at 4:46 AM, doctorcrypto <[email protected]>wrote: >> >>> Method isn't available. >>> >>> Any ideas? >>> >>> I've tried getImageURI() and getImageURL() as both are mentioned in the >>> documentation (I assume that might just be a typo). >>> >>> Thanks, >>> >>> N. >>> >>> -- >>> 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 http://groups.google.com/ >>> group/google-visualization-api. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > 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 > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
