Fix tooltip positioning

This commit is contained in:
Tom MacWright
2016-08-24 09:42:14 -04:00
parent 29f2c20e35
commit e0f3d562c7
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { functor } from './index';
import * as d3 from 'd3';
import 'd3-selection-multi';
export function tooltip() {
var tooltip = function(selection) {
@@ -122,7 +123,7 @@ export function tooltip() {
break;
}
tip.style(pos ?
tip.styles(pos ?
{left: ~~pos.x + 'px', top: ~~pos.y + 'px'} :
{left: null, top: null});