I know this is a fairly old thread but would be able to share the code for how you accomplished the tooltips for the google org chart using jquery dialog? It would be much appreciated, thanks!
On Friday, September 16, 2011 5:37:01 PM UTC-6, Antonias wrote: > > Thanks, your answer helped me, after fighting all afternoon with the > code, I got a solution that leaves me quiet. > instead of displaying the information in the "tooltip", I used the > extension "dialog" from "JQuery" and is quite elegant. > > On 16 sep, 09:25, asgallant <[email protected]> wrote: > > My guess is that your jQuery is running before the org chart has drawn, > so > > the "a1" and "a2" divs don't exist yet. You should set up the jQuery > > tooltips to initialize when the chart fires its ready event. Remove the > > jQuery function that executes on page load and add this to your draw > > function, between the chart object declaration and the draw call: > > > > google.visualization.events.addListener(chart, 'ready', function() { > > $('#A2').Tooltip({ > > delay: 0, > > showURL: false, > > bodyHandler: function() { > > return $("<img/>").attr("src", this.src); > > } > > }); > > $('#A3').Tooltip({ > > delay: 0, > > showURL: false, > > bodyHandler: function() { > > return $("<img/>").attr("src", this.src); > > } > > }); > > > > } > > > > There are other issues with the code you posted, most of which I assume > are > > typos from typing out the code here (missing commas and periods mostly). > I > > suspect that your jQuery selector for image tags is invalid as well, but > I > > could be wrong about that. There could also be some conflicts with the > > vizualization API's native tooltip functionality. > > > > Is there some particular reason you want to use jQuery's tooltips > instead of > > the visualization API's? -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
