dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
227 stars 68 forks source link

Track name overlapping data #40

Open doomedramen opened 10 years ago

doomedramen commented 10 years ago

When data is at the very start of the track it is overlapped by the track label/name. An option to indent the track so it starts just to the right of the track label would be very useful for this situation.

A temp fix for us was to add an option to set: left: 95px; on the class: *.dalliance .view-holder

dasmoth commented 10 years ago

This was a deliberate design decision to try and conserve screen space. Pre-canvas versions of Dalliance (0.7 and earlier) did put labels in a separate column, but we ran into problems because we either had to devote a lot of space to the labels, or trim long track names (which are needed in some contexts -- ENCODE track names are generally quote long, but are mostly meaningful).

But having an option is probably a good idea!

moritzschaefer commented 6 years ago

Is there a way to not show names? Setting in the stylesheet doesn't have any effect

dasmoth commented 6 years ago

@moritzschaefer: the LABEL property in the DAS stylesheet is for controlling the labelling of individual features, not tracks.

If you are talking about the track labels, have you tried something like wookoouk's proposed solution (in CSS)?

There is one "unofficial" option you could try: noDefaultLabels: true in the top level configuration. This is only really intended for "ultra-minimalist" applications, though -- without the track labels it's no longer possible to, e.g., re-order tracks.

Are you able to share a bit more information about your use-case?