Imageomics / dashboard-prototype

Prototype data dashboard for Imageomics Data
http://dash.imageomics.org
MIT License
5 stars 2 forks source link

Adjust histogram x-axis labels to avoid reducing size of histogram #57

Open egrace479 opened 6 months ago

egrace479 commented 6 months ago

When labels on the x-axis of the histogram are too long, they get printed in full and the histogram gets shrunken down (as in sample image below). Labels shouldn't be blindly truncated, but also can't be forced too small to be legible. An abbreviation algorithm could be a solution, though this could be quite complicated. One potential solution might be to add a button when the labels are over a certain length to truncate them or leave as-is.

Investigate: dash x-axis label solutions (beyond text size), abbreviation options.

histogram image example