Hi, first of all, thanks for creating this great library. I want to add tooltips for a Line between 2 cities. I used the "Map chart with tooltip" example and got it working with Lines, however, when I hover over, the tooltip shows up for the line but also for empty space next to the line.
Here's it working properly and showing the tooltip when hovering on the line:
Here below the line it still shows the tooltip:
Then a little further away it stops:
And above the line it doesn't show:
It seems like it is showing the tooltip at any point in the area between the from and the to co-ordinates and underneath the line, is there any way to avoid this so that the tooltip is only shown when hovering directly over the line?
Of course, just after posting this I figured it out. Although the fill is transparent, it is still there so is included in the mouseEnter event. Just have to add fill="none" to the Line.
Hi, first of all, thanks for creating this great library. I want to add tooltips for a Line between 2 cities. I used the "Map chart with tooltip" example and got it working with Lines, however, when I hover over, the tooltip shows up for the line but also for empty space next to the line.
Sandbox here
Here's it working properly and showing the tooltip when hovering on the line:
Here below the line it still shows the tooltip:
Then a little further away it stops:
And above the line it doesn't show:
It seems like it is showing the tooltip at any point in the area between the from and the to co-ordinates and underneath the line, is there any way to avoid this so that the tooltip is only shown when hovering directly over the line?