GeoChart: onmouseover event in the GeoChart

905 views
Skip to first unread message

Soonho Kim

unread,
Apr 26, 2012, 6:40:11 PM4/26/12
to google-visua...@googlegroups.com
Hi, I know that Geochart doesn't support "onMouseover" event. Instead, GeoChart shows a tooltip when users mouse over a particular region. 

What I have been doing is to replace a flash map with a GeoChart. 

You can find  the geo chart  which I am working on (http://www.hyalina.com--> The first map was implemented in Flash and the second map was implemented in GeoChart in the right side)  

What I would like to do is that when users mouse over a country, then show corresponding numbers in the 4 below boxes. The Flash map works well! (The first one)

However, I found that GeoChart doesn't support "onMouseOver" event. I tried to addLister  to the GeoChart like

      google.visualization.events.addListener(chart, 'onmouseover', function(eventData) 
        {
          // I need to get eventData.region and alert it

         alert ("selected:"+ eventData.region );  
         
        });  

It seems not to work. 

Is there any way to get the region which users mouse over? 
I guess that tooltip has the information which I want to get it. So, if I can reimplment the tooltip option, then I might find a way to do it.

Any idea or suggestion would be welcomed!!

Thanks in advance. : ) 


Viz Kid

unread,
Apr 29, 2012, 5:37:50 PM4/29/12
to google-visua...@googlegroups.com

Unfortunately this is indeed not supported at the moment. Sorry.

  Viz Kid



--
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/-/bTgtD3TadroJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Soonho Kim

unread,
May 2, 2012, 2:49:28 PM5/2/12
to google-visua...@googlegroups.com
thanks so much for your answers! : ) 


On Sunday, April 29, 2012 5:37:50 PM UTC-4, Viz Kid wrote:

Unfortunately this is indeed not supported at the moment. Sorry.

  Viz Kid

On Fri, Apr 27, 2012 at 1:40 AM, Soonho Kim <soo...@gmail.com> wrote:
Hi, I know that Geochart doesn't support "onMouseover" event. Instead, GeoChart shows a tooltip when users mouse over a particular region. 

What I have been doing is to replace a flash map with a GeoChart. 

You can find  the geo chart  which I am working on (http://www.hyalina.com--> The first map was implemented in Flash and the second map was implemented in GeoChart in the right side)  

What I would like to do is that when users mouse over a country, then show corresponding numbers in the 4 below boxes. The Flash map works well! (The first one)

However, I found that GeoChart doesn't support "onMouseOver" event. I tried to addLister  to the GeoChart like

      google.visualization.events.addListener(chart, 'onmouseover', function(eventData) 
        {
          // I need to get eventData.region and alert it

         alert ("selected:"+ eventData.region );  
         
        });  

It seems not to work. 

Is there any way to get the region which users mouse over? 
I guess that tooltip has the information which I want to get it. So, if I can reimplment the tooltip option, then I might find a way to do it.

Any idea or suggestion would be welcomed!!

Thanks in advance. : ) 


--
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/-/bTgtD3TadroJ.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages