statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
156 stars 29 forks source link

Improve default tooltip positioning logic #184

Closed abought closed 4 years ago

abought commented 4 years ago

Purpose

One of the most tedious parts of creating a new data layer is ensuring that tooltips are correctly positioned. In part, this is because each data layer implements its own logic to handle many scenarios.

It should be feasible to generalize the default implementations into a single version that handles common cases, based on the bounding box of the tooltip.

TODO

abought commented 4 years ago

180