Hi, I'm using ColumnChart, not Google Maps. Nothing really in common here I guess. Thanks for your message, I appreciate it! ;)
On Sep 18, 7:46 am, Scratch22 <[email protected]> wrote: > Search up jquery and google maps and you shall find the Google maps > with UI.tabs example, and inside the code is this little snippet which > refers to the position of the marker on the map. obviously on the > mouseover event you could just use the location of the marker as the > reference for you css??? Im new to JS so if your talking about > something different just desregard this lol. > > var hover = GEvent.addListener(map, "moveend", function(){ > var markerOffset = map.fromLatLngToDivPixel(fmarker.getPoint()); < > --------- > > var xa = markerOffset.x -13; > var ya = markerOffset.y -13; > > var cssmsg = { > 'top':ya, > 'left':xa > } > > $(".sinfo") > .css(cssmsg) > .show("drop", { direction:"right" }); > > GEvent.removeListener(moveEnd); > > }); > > On Sep 9, 12:33 am, Julian Esperat <[email protected]> wrote: > > > > > Too bad, it would be a great feature to have. Thanks for the answer, I'm > > certain now. > > > How far are you registering the events at a degree that window.event is > > unavailable? That's insane. :o > > > On Tue, Sep 8, 2009 at 9:20 AM, VizGuy <[email protected]> wrote: > > > There is no way to get the mouse position from the mouse over event. > > > > Regards, > > > VizGuy > > > > On Mon, Sep 7, 2009 at 6:06 PM, Julian Esperat > > > <[email protected]>wrote: > > > >> Hey, thanks! > > > >> You resolved my first question, and it was indeed the name of the > > >> variable... Shame on me! > > > >> Unfortunately I want a personnalised tooltip (of my own), so I need the > > >> mouse position (the event property/object of the window object). > > >> My second question is still looking for an answer about it. > > > >> Thanks again. > > >> Regards, > > >> Savageman. > > > >> On Sun, Sep 6, 2009 at 9:16 AM, VizGuy <[email protected]> wrote: > > > >>> Hi, > > >>> What you are trying to do is possible, but you had a small yet > > >>> significant mistake that caused it not to work. > > >>> The setSelection method accepts an array of selections, while the event > > >>> is fired with a single hover entry. > > >>> All you have to do then is to surround the event with an array notation > > >>> and it will work: > > > >>> google.visualization.events.addListener(visualization, 'onmouseover', > > >>> function(e) { > > >>> visualization.setSelection(*[**e**]**)*; > > >>> }); > > > >>> Make sure that you refer to the chart var in the same name in all > > >>> places, > > >>> and that they are accessible. I think there is a mistake in the example > > >>> you > > >>> wrote here, and in my code its 'visualization'). > > > >>> Regards, > > >>> VizGuy > > > >>> On Wed, Aug 19, 2009 at 4:27 PM, Savageman <[email protected]>wrote: > > > >>>> Still looking for help. > > > >>>> The problem is that the onmouseover returrns a selection and not an > > >>>> event. > > >>>> Is there any way to get a second parameter? Or something like > > >>>> google.vizualisation.events.lastevent? > > > >>>> Thanks! > > > >>>> On 14 août, 18:05, Savageman <[email protected]> wrote: > > >>>> > Hi, > > > >>>> > Thanks for the Visualisation API, it really rocks. > > >>>> > I'm using AreaChart and I'm trying to display some tooltips when > > >>>> > hoverint the points on the graph. > > >>>> > Unfortunately, the onmouseover() callback function returns only a > > >>>> > selection ({row:1,column:2} for example) and I couldn't get the event > > >>>> > to retrieve the mouse position... > > > >>>> > Here is some code: > > > >>>> > var areachart = new google.visualization.AreaChart > > >>>> > (document.getElementById('chart_div')); > > >>>> > areachart.draw(data, {}); > > >>>> > google.visualization.events.addListener(areachart, > > >>>> 'onmouseover', > > >>>> > function(sel) { > > >>>> > area.setSelection(sel); // 1st question: this code > > >>>> doesn't select > > >>>> > anything (no tooltip on the graph), why? > > >>>> > // 2nd question: how to retrieve the object event? > > >>>> window.event is > > >>>> > undefined here, don't know why... > > >>>> > }); > > > >>>> > Thanks for help ! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
