Closed Frencil closed 8 years ago
I noticed this only works for demo_responsive.html
, not demo.html
. Should we still keep the two separate should we merge down to one demo?
For the recombination rate label, we should probably include the units "cM/Mb" aka centimorgans per megabase. Otherwise it's less clear what those values actually mean. If that looks too bad, we may have to thing of other ways to label that access. But it's so nice to see that friendly blue line there again.
One other minor thing, the Download SVG button seems to be getting cut off. Screenshot attached.
Other than that, things look great!
Issues addressed:
demo.html
now correctly defines the recomb data source to display correctlyAs for merging the demos, I was thinking that as LocusZoom's capabilities continue to expand we may want the repo to host a variety of demos (e.g. we could host a demo of using LocusZoom for a PheWAS plot right now, but that's not exactly high priority). I could see migrating all demos into a demos
directory or some such and renaming / updating them to highlight specific features of the library. For now it's not too hard to keep the three in sync with correct data sources.
You're right. More demos would probably be better. We just need to ensure that we keep them all in sync.
What
This branch utilizes the new
recomb
data source to implement a basic recombination rate line.While the line data layer already existed the tool tip positioning logic needed some iteration to behave a bit more intuitively for all lines in general.
Changes
Infinity
) and to the top/bottom of the line if the slope is less than one.createTooltip()
=>updateTooltip()
=>positionTooltip()
(as opposed to justcreateTooltip()
=>positionTooltip()
). The newupdateTooltip()
function handles writing the contents to the tool tip. This doesn't change the behavior for tool tips on other data layers that create tool tips once for discrete data points, but lines are continuous data ranges so the update method allows for changing the contents of the tooltip as it is repositioned (e.g. as the mouse moves over the line - useful if the tooltip is showing dynamic data about that position on the line).StandardLayout
now includes a recombination rate data layer in the positions panel, arranged behind the scatter/association data but in front of the line of statistical significance.