Hm, if i change 'ready' event to 'statechange' in Your code it wont work again :S I'm getting really confused. Any suggestion?
Thanks, gallusz 2012. szeptember 6., csütörtök 16:55:00 UTC+2 időpontban asgallant a következőt írta: > > It works fine for me when I tried in on the Visualization > Playground<https://code.google.com/apis/ajax/playground/?type=visualization#motion_chart> > . > > google.visualization.events.addListener(motionchart, 'ready', function () > { > var my_state = JSON.parse(motionchart.getState()); > console.debug(my_state.iconType); > }); > > On Thursday, September 6, 2012 10:24:43 AM UTC-4, Gallusz Abaligeti wrote: >> >> Dear All, >> >> I'm working on a motionchart, and i would like to get the "iconType" >> property from the actual state of the chart if it changed. My code is the >> following: >> >> google.visualization.events.addListener(motionchart, 'statechange', >> statechangeHandler); >> function statechangeHandler() { >> var my_state=JSON.parse(motionchart.getState()); >> console.debug(my_state.iconType); >> }; >> >> Its not working, however if I ask just for the "my_state" object, then i >> can see all of the properties on the console. >> Please help me, thanks a lot! >> >> regards, >> gallusz >> >> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/yYOqPpMKD1EJ. 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.
