plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

overlapping tick labels

Open destradafilm opened this issue 4 years ago • 1 comments

I have a plot which uses custom labels using yaxis.ticktext.

yaxis: {
type: "category",
categoryarray: sortedLabelsArray.map((v, i) => i),
categoryorder: "array",
tickmode: "array",
ticktext: sortedLabelsArray,
tickvals: sortedLabelsArray.map((v, i) => i)
}

I dont know if this should be considered a bug or a feature request, but if there are too many values on an axis they tick labels overlap and are unreadable. When labels are auto-generated based on values it skips some labels in order to be readable.

Can there be an option ticktextpretty: BOOL to auto-hide labels some labels in between for readability when using 'ticktext' ?

Screen Shot 2020-06-04 at 2 50 02 PM

destradafilm avatar Jun 04 '20 21:06 destradafilm

Did you find any solution to this?

Alexander-Krause-Glau avatar Jan 10 '24 18:01 Alexander-Krause-Glau

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Alternatively, if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

gvwilson avatar Jul 08 '24 11:07 gvwilson