justin0022/dashboard

Small map tooltip issue

justin0022 opened this issue · 3 comments

Tooltip doesn't necessarily come up near mouse hover.

screen shot 2019-03-01 at 7 48 19 am

I played around with d3tip().offset and d3tip().direction values and I think the reason why Russia tooltip shows up in the middle is because there is a bit of Russian land on the left side of the map (though the majority of the land is on the right). I'm not sure how to fix this though unless we ensure that the land of each country isn't separated on the map.

Oh I know, calculate the midpoint of the area!

Actually don't worry about it for now, we'll deal with it if we ever implement the map