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

Annotation track improvements #150

Closed abought closed 6 years ago

abought commented 6 years ago

References #124 and https://github.com/statgen/pheweb/compare/8cdb7...pull-112-head#diff-007e08bf75bfe53b85b14034803e369c

Expand suggestions by @pjvandehaar and incorporate into core codebase:

How to test this

The effect of each position option can very quickly be tried in the console:

plot.panels["annotationcatalog"].data_layers["annotation_catalog"].layout.tooltip_positioning = 'bottom'

Alternatives considered

pjvandehaar commented 6 years ago

The separate <g>s aren’t needed. Perhaps the code would be clearer without them.