On Sat, May 19, 2012 at 6:49 AM, Sima Kan <[email protected]> wrote:

> Hello All!
>
> I've been playing around with the motion chart the past couple of days and
> have 2 questions. Hoping someone can answer them.
>
> 1. While looking at some examples online, I noticed that there are a few
> which defaulted the color dropdown to column value instead of the "Same
> Color" that is currently defaulted out of the box. I read up on setting
> States and passing in the parameters to the state string.
> My current state string looks like this:
> '{"iconKeySettings":[],"stateVersion":3,"time":"notime","xAxisOption":"_NOTHING",
> "uniColorForNonSelected":false,"playDuration":15,"iconType":"BUBBLE","sizeOption":"_NOTHING","xZoomedDataMin":null,"xZoomedIn":false,"duration":{"multiplier":1,"timeUnit":"none"},"yZoomedDataMin":null,"xLambda":1,"colorOption":"_UNICOLOR","nonSelectedAlpha":0.4,"dimensions":{"iconDimensions":[]},"yZoomedIn":false,"yAxisOption":"_NOTHING","yLambda":1,"yZoomedDataMax":null,"showTrails":true,"xZoomedDataMax":null};';
>
> But, the chart still defaults to "Same Color" on startup. What option do I
> set to default the Color dropdown to a column value on load?
>

Look at this property:

"colorOption":"_UNICOLOR"
 "colorOption":"3" -- 3 is the column number to use for colors.


> 2. Is it possible to call a motion chart from another motion chart based
> on a bubble selected? Any pointers how I can do this?
>

Whenever you select a bubble there is a "select" event  being dispatched
from the chart. You can listen to that event and then call what ever code
you like over the other motion chart.
Events example:
https://code.google.com/apis/ajax/playground/?type=visualization#interaction_using_events


ChartMan




> Thanks in advance,
> SimaKan
>
> --
> 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/-/4hS69FgRjXMJ.
> 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.
>

-- 
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