Hmm...I don't work much with motion charts, but I think what you want to be
testing for is the iconType property. Something like this, maybe?
google.visualization.events.addListener(chart, 'statechange', function () {
var state = chart.getState();
if (state['iconType'] = 'BUBBLE') {
// change to time
}
else if (state['iconType'] = 'VBAR') {
// change to alphabetical
}
});
I think that there is another type ('BUBBLE_BAR') that marks the
transitional state in between the two.
--
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/-/UBFSuAUycCAJ.
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.