Hi,
I keep trying different things, trying to change the scope chart. I
tried your code and just for testing I put alert() messages to see if
it went inside the if statements, but never got there.
Using the debugger I see that the value of state is always null and it
doesn't show any 'components' inside. Is there another setting that
needs to be enable or "library" imported in order to
access .getState() ?


Thank you,

-C

PS: I hope you don't mind if I send you a link showing you what I'm
seeing.

On Oct 4, 10:41 am, asgallant <[email protected]> wrote:
> 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 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.

Reply via email to