display a chart by mouse over in info window

35 views
Skip to first unread message

sindhu

unread,
May 31, 2012, 6:24:25 AM5/31/12
to google-visua...@googlegroups.com
i want to dispaly the pie and column chart in info window when mouse over
any one please kindly me

asgallant

unread,
May 31, 2012, 9:30:22 AM5/31/12
to google-visua...@googlegroups.com
As long as you can get the information you need to draw the chart from the element you mouseover, then this is fairly easy:

// element is the DOM element to attach the event handler to
element.onmouseover function ({
    // fetch the information you need from the element, then call the draw function, passing any necessary parameters
}; 

If you're looking to use this on chart elements, though, it becomes much more difficult, as the Visualization API doesn't expose a 'mouseover' event for the charts or any methods to link a DOM element back to its origin in the DataTable.
Reply all
Reply to author
Forward
0 new messages