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 rendering and readability of labels #266

Open abought opened 2 years ago

abought commented 2 years ago

The current plot label code is iterative on render. For a region with many labeled items, this triggers many forced refreshes, and causes the page to show a slow, ugly animation as labels move into position.

  1. The layout code should be performed before labels are rendered, and explore more performant algorithms
  2. Explore readability improvements for labels, lines, and backgrounds where items overlap with markers (like scatter plot points)

This will require a bit of experimentation and refactoring- priority is based on the effort:reward ratio. If specialized use cases arise where we want to show that many labels more often, we can revisit priority.