biocore / empress

A fast and scalable phylogenetic tree viewer for microbiome data analysis
BSD 3-Clause "New" or "Revised" License
45 stars 31 forks source link

Length legends' SVG exporting logic doesn't account for long titles #528

Open fedarko opened 3 years ago

fedarko commented 3 years ago

Minor bug: when the length of a legend title (usually, the corresponding metadata field used to encode lengths in a barplot layer) is longer than the longest rows within the legend, this is not accounted for. This bug results in the exported SVG legends looking like:

image

This should be pretty simple to fix, fortunately. This is coming up as a problem for #322.