biocore / biocore/empress

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

Open
#528 0 comments 1 reaction 1 assignee Claimed by @fedarko View on GitHub
barplots bug
Dominant language
JavaScript
Stars
56
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/4177727/123035621-77055b80-d3a0-11eb-9d7d-41b6ffc9b269.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.