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

Ability to load dynamically-built URL for onclick action #84

Closed Frencil closed 7 years ago

Frencil commented 7 years ago

Presently the behaviors system allows for determining the status a data element takes on click / shift-click / ctrl-click etc. However in some use cases where LocusZoom is an element of a larger platform (e.g. PheWeb) a more desirable behavior would be to tie data element click events to loading a new URL, ideally defined using the same templating markup used in tool tips to allow for dynamic URLs that draw from arbitrary fields on the element.

Frencil commented 7 years ago

This has been addressed on master and will appear in the upcoming 0.5.4 release. Documentation on the new layout syntax that supports this change is here.