novus/nvd3 — pull request #139 by Ericrose512 (2012-08-07 00:09:12+00:00)
Title: Updated all calls to nv.tooltip.show to pass in the offsetElement as the parent element

It looked like the tooltips were using the document body as the parent element in all cases. This would throw off tooltips on pages with absolutely positioned side bars or on pages where the graph lived in a dialog. This fix uses the offset Element, which in every case seems to be the div that wraps the chart's svg element, as the parent element for the tool tips.

Tool tips now align correctly in these cases.