Show Legend as the default

14 views
Skip to first unread message

Yuandan Zhang

unread,
Nov 26, 2024, 8:14:31 PM11/26/24
to locuszoom
hi there

In locuszoom, there is a button "show legend", the default is set to 'hide', how to set "show" as the default. I scanned the min.js file, could not find way to do it.  

regards

Yuandan

Andy Boughton

unread,
Nov 26, 2024, 11:09:45 PM11/26/24
to locu...@googlegroups.com
The short answer is that you'll need to create a custom layout, in which you override some of the default options for the association panel.

So when you get the piece of the layout, then per the layouts tutorial in the docs, you might have the following code
LocusZoom.Layouts.get('panel', 'association', { legend: { hidden: true } } );



The docs have both deep code explanations and several useful tutorials on how to customize every aspect of plot display. I hope this gives you a starting point!

-Andy Boughton
abo...@umich.edu


--
You received this message because you are subscribed to the Google Groups "locuszoom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to locuszoom+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/locuszoom/bc396551-0a78-4c7b-9cf3-c930b27f835bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages