I see now - I misunderstood what you meant by coordinates. I was sure you
were referring to the screen (pixel) coordinates.
If you're interested in the data values then of course you can extract them
from the data table using the row/column indices carried by the event.
The experimental API I was talking about refers to exposing the screen
coordinates of the elements, not the data values.
On Monday, June 11, 2012 1:37:52 PM UTC+3, Dmitry Loktev wrote:
>
> I am always not sure if i've expressed myself correctly asking this
> question, because it seems that there is an answer (just found it!). That's
> a handler that treats the onmouse event, i.g. the event that fires when we
> hover a point.
>
> function handler (e){
>
> alert ("in the handler");
>
> var a, b;
> a = data.getValue(e.row, 0);
> b = data.getValue(e.row, 1);
> alert('The user selected ' + a + ' ' + b + 'coordinates ')
> }
>
> Or is it the experimental API you were talking about?
>
> Dmitry
>
> 2012/6/11 visigoth <[email protected]>
>
>> I'm afraid there isn't.
>> We have an experimental API for both (coordinates of visual elements and
>> the cursor), but this is not yet ready for public use.
>> Obviously if and when we decide to proceed and publish it there will be a
>> proper announcement.
>>
>> Sorry.
>>
>> On Monday, June 11, 2012 12:21:50 PM UTC+3, Dmitry Loktev wrote:
>>>
>>> Thank your for the reply!
>>>
>>> Actually I am interested not in the coordinates of the mouse, but in the
>>> coordinates of the hovered point. Sorry for the bad explanation in the
>>> first letter.
>>>
>>> Is there a way to get them, i.g. the coordinates of the hovered point?
>>>
>>> Dmitry!
>>>
>>> 2012/6/11 visigoth <[email protected]>
>>>
>>>> Hi,
>>>>
>>>> The onmouseover event does not carry the coordinates of the cursor,
>>>> only the indices of the element in the data table.
>>>> We are considering adding it in a future release, but as of yet have no
>>>> estimation on when.
>>>>
>>>> Visigoth
>>>>
>>>>
>>>> On Sunday, June 10, 2012 1:24:37 PM UTC+3, Dmitry Loktev wrote:
>>>>>
>>>>> Hi!
>>>>>
>>>>> I am drawing a scatter plot and I would like to treat the onmouseover
>>>>> event. In the API reference it says that the event passes back the row
>>>>> and column indices of the corresponding data table element.
>>>>>
>>>>> So, to handle the onmouseover event I create a handler function and
>>>>> add a listener:
>>>>>
>>>>> function handler (){
>>>>>
>>>>> alert ("in the handler");
>>>>>
>>>>> }
>>>>>
>>>>> google.visualization.events.**ad**dListener(chart, 'onmouseover',
>>>>> handler);
>>>>>
>>>>> But how do I seize the returned values, i.g. the coordinates of the
>>>>> point where the mouse have passed?
>>>>>
>>>>> Dmitry
>>>>
>>>> --
>>>> 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/-**/-yh3xKCMt0YJ<https://groups.google.com/d/msg/google-visualization-api/-/-yh3xKCMt0YJ>
>>>> .
>>>>
>>>> To post to this group, send email to google-visualization-api@**
>>>> googlegroups.com <[email protected]>.
>>>> To unsubscribe from this group, send email to google-visualization-api+
>>>> **[email protected]<google-visualization-api%[email protected]>
>>>> .
>>>> For more options, visit this group at http://groups.google.com/**
>>>> group/google-visualization-**api?hl=en<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 view this discussion on the web visit
>> https://groups.google.com/d/msg/google-visualization-api/-/IoAJ4mTDPtwJ.
>>
>> 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 view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/6SNKyObGVV8J.
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.