I am using the Tooltips provided by Twitter Bootstrap (http://twitter.github.com/bootstrap/javascript.html#tooltips).
I have some dynamically inserted markup in my D
This is shorthand that i use to determine window width is smaller 768 or not, then change tooltip placement from left to top:
placement: function(){return $(window).width()>768 ? "auto left":"auto top";}