statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
158 stars 66 forks source link

Phenotype labels overlap on PheWAS #8

Closed pjvandehaar closed 8 years ago

pjvandehaar commented 8 years ago

Option 1: In ggplot2, ggrepel fixes this. I'll search for something similar for d3, or else try to copy their algorithm.

Option 2: Maybe I can try a simple approach, like moving labels to the left or up or down until they no longer conflict, and drawing a line if the label moves too far from the point.

Option 3: Do simple things, and if it fails just give up and either (a) leave a mess or (b) don't draw the label.

pjvandehaar commented 8 years ago

Solved on LZ-based PheWAS.