elsiklab / multibigwig

A JBrowse plugin for plotting multiple bigwig subtracks
12 stars 2 forks source link

Legend for MultiXYPlot #11

Closed mgalland closed 7 years ago

mgalland commented 7 years ago

Thanks for this very nice plugin. I am a big fan of the MultiDensity plugin. I'd like to know whether it would be possible to display a legend for the MultiXYPlot class. For now, we can see multiple XY curves but we don't know to which sample they each belong. That would be an awesome improvement. Best Marc

cmdcolin commented 7 years ago

The only thing that exists currently is called "colorizeAbout" which adds a small "legend" to the "About this track" dialog box.

I think this could still be improved though. The legend could even be rendered in the top right or it could dynamically display scores for each one during mouseover https://github.com/elsiklab/multibigwig/issues/2 which would probably be ideal

cmdcolin commented 7 years ago

Glad that you like the plugin!

cmdcolin commented 7 years ago

Screenshot when enabling "colorizeAbout": true

screenshot-localhost-2017-04-12-10-05-03

keiranmraine commented 7 years ago

@cmdcolin , is colorizeAbout available for all tracks or just this?

cmdcolin commented 7 years ago

colorizeAbout is a special option for tracks in multibigwig. I know that perhaps the idea of a legend should be available from other jbrowse tracks too though :)

cmdcolin commented 7 years ago

@keiranmraine this is the code that customizes the "About this track" dialog for this plugin

https://github.com/elsiklab/multibigwig/blob/master/js/View/Track/MultiWiggleBase.js#L82-L93