Sounds like a bug.. Thanks for reporting. We will work on it. - VizBoy.
On Fri, Feb 27, 2009 at 8:07 AM, Otis <[email protected]>wrote: > > I am using the motionchart visualization to display data. I need to > capture selection information to enable drill down functionality. The > documentation for motionchart shows no select event, but there is a > getState() method described as: > > "Returns the current state of the motionchart serialized to a JSON > string. This string can be used as an initial state when displaying > the chart by calling draw()." > > However, any call to the "getState()" function results in an error: > "this.s().L is not a function" > > Turns out that this.s() returns an empty string and the javascript > function that is called is trying to return this.s().L() > > This error can be easily reproduced on the ajax playground site: > > http://code.google.com/apis/ajax/playground/?type=visualization#motion_chart > > Change the text in the edit window to: > > function drawVisualization() { > var mchart = new google.visualization.Query( > 'http://spreadsheets.google.com/tq?key=pCQbetd- > CptE1ZQeQk8LoNw<http://spreadsheets.google.com/tq?key=pCQbetd-%0ACptE1ZQeQk8LoNw> > ').send( > function(response) { > var mchart = new google.visualization.MotionChart( > document.getElementById('visualization')); > mchart.draw(response.getDataTable(), {'width': 800, > 'height': 400}); > alert(mchart.getState()); > }); > } > > Any help is greatly appreciated! > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
