Since the getState() method returns a serialized JSON string, the if statement: if(!chart.getState()) will evaluate to true only if the getState() method is returning null, so the subsequent alert(chart.getState( )); call will never show anything other than null.
-- 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/-/Rm_vJlLJIwkJ. 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.
