At the moment the scatter plot does not offer any visual highlight for
selection events (that is, the selection is registered, but the selected
point is not visually differentiated from the others, see
https://groups.google.com/d/topic/google-visualization-api/jwLMkhwKP6c/discussion),
so plain setSelection won't work for you. Other team members might
detail
whether changes are happening in this area or not, because I'm not fully
up-to-date on this.

In the meanwhile, since the scatterplot uses a separate color for each data
serie (each datatable column) an alternative solution might be the
following:

- when a point is selected (via setSelection or by user click), identify the
correspondent datatable row and move the cell containing the point value to
a separate column (this will trigger a color change) and redraw the
visualization.
- when another point is selected, revert the previous change and apply the
previous step.

I haven't explicitly coded this, but I think it should work, although it's a
non trivial amount of helper code to write.

-- R.

On 23 September 2011 10:09, Maxim Colls <[email protected]> wrote:

> Hi,
>
> I'm trying to interact with the Scatter Plot. What I want to do is to
> highlight / change the color of a point dynamically.
>
> I tried with setSelection method but it doesn't seem to work.
>
> Thanks,
>
> Màxim
>
> --
> 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.
>
>

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