{"action":"created","issue":{"url":"https://api.github.com/repos/novus/nvd3/issues/1187","labels_url":"https://api.github.com/repos/novus/nvd3/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/novus/nvd3/issues/1187/comments","events_url":"https://api.github.com/repos/novus/nvd3/issues/1187/events","html_url":"https://github.com/novus/nvd3/issues/1187","id":99291108,"number":1187,"title":"Overriding/customize Tooltip gravity modes and chartContainer","user":{"login":"hc000","id":3950207,"avatar_url":"https://avatars.githubusercontent.com/u/3950207?v=3","gravatar_id":"","url":"https://api.github.com/users/hc000","html_url":"https://github.com/hc000","followers_url":"https://api.github.com/users/hc000/followers","following_url":"https://api.github.com/users/hc000/following{/other_user}","gists_url":"https://api.github.com/users/hc000/gists{/gist_id}","starred_url":"https://api.github.com/users/hc000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hc000/subscriptions","organizations_url":"https://api.github.com/users/hc000/orgs","repos_url":"https://api.github.com/users/hc000/repos","events_url":"https://api.github.com/users/hc000/events{/privacy}","received_events_url":"https://api.github.com/users/hc000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-05T20:25:30Z","updated_at":"2015-09-22T21:04:07Z","closed_at":null,"body":"Due to some other library css conflicts (http://jsfiddle.net/7wdka3hr/3/) having the tooltip in the body fixes the issue that I am having.\r\n\r\nWhat is the best approach to override or change the settings without actually changing the library? or perhaps the library can add a new feature to be able to pass a function for the gravity with custom logic just returning top/left.\r\n\r\nI want to set these\r\n\r\n    chartContainer = document.body \r\n\r\nand add a new case\r\n\r\n    left = event.pageX+5;\r\n    if (left+width+10 > windowWidth) left = left - width - 10;\r\n    top = event.pageY-(height / 2);\r\n    if (top+(height / 2) + 10 > windowHeight) top = top - (height / 2) - 5;\r\n    if (top-window.pageYOffset < 0 ) top = window.pageYOffset+50;\r\n"},"comment":{"url":"https://api.github.com/repos/novus/nvd3/issues/comments/142421230","html_url":"https://github.com/novus/nvd3/issues/1187#issuecomment-142421230","issue_url":"https://api.github.com/repos/novus/nvd3/issues/1187","id":142421230,"user":{"login":"liquidpele","id":1065913,"avatar_url":"https://avatars.githubusercontent.com/u/1065913?v=3","gravatar_id":"","url":"https://api.github.com/users/liquidpele","html_url":"https://github.com/liquidpele","followers_url":"https://api.github.com/users/liquidpele/followers","following_url":"https://api.github.com/users/liquidpele/following{/other_user}","gists_url":"https://api.github.com/users/liquidpele/gists{/gist_id}","starred_url":"https://api.github.com/users/liquidpele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquidpele/subscriptions","organizations_url":"https://api.github.com/users/liquidpele/orgs","repos_url":"https://api.github.com/users/liquidpele/repos","events_url":"https://api.github.com/users/liquidpele/events{/privacy}","received_events_url":"https://api.github.com/users/liquidpele/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T21:04:07Z","updated_at":"2015-09-22T21:04:07Z","body":"It says it can't merge.... Tooltip were just fixed up a lot, so your issue might even be fixed already in master....  Or merge our master into your branch to fix any conflicts and then make the pull request."}}