Split or word wrap SVG text for y-axis labels in measurements panel groups
Description
Originally commented on by @jameshadfield:
think it's worth spending 30 minutes to see if an acceptable solution can be found here. There's heaps of vertical pixel space [1]. Splitting on spaces, hypens, slashes etc should allow a reasonably good result.
[1] at least, there is in the measurements paper's h3n2 dataset I'm using to test. Even when colouring by a unchanging genotype, so there can only ever be one category. Perhaps in some configurations this is different?
@huddlej also noted issues with either very tiny text or text overflowing under different conditions.
The color by measurements crosshair icon is also affected by this issue, from https://github.com/nextstrain/auspice/pull/1924#discussion_r1902224814:
Hmm, placement of the crosshair is not great when the grouping string is too long