CityofToronto / bdit_king_pilot_dashboard

Dashboard for King St Pilot
GNU General Public License v3.0
4 stars 2 forks source link

Tooltip not aligning with D3 Map scaling #120

Closed rcyyu closed 6 years ago

rcyyu commented 6 years ago

Tooltip does not appear where mouse hovers. It appears below the SVG and difference is roughly equal to the SVG's height. Attempts to offset the difference using padding-bottom: 40% in div.tooltip were successful when the D3 map was not scalable, but when the map was made scalable, the property conflicts with the devices used for scaling.

rcyyu commented 6 years ago

Fixed. Appended the tooltip to the parent of the svg container.