You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is indeed awkward: categories are automatically mapped to integers starting at 0, so your "1" category is actually at x=0. On the other hand, annotation x positions are always interpreted as numbers, so your x="1" annotation is in fact placed at x=1.
We don't have a good workaround for this at the moment, sorry.
cc @alexcjohnson we were just talking about this the other day :)
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 several years, 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. Thanks for your help - @gvwilson
Uh oh!
There was an error while loading. Please reload this page.
Plotly version: 2.0.0
Example Pen: https://codepen.io/kei51/pen/xxqBdWW
Annotations align with bars nicely if I don't set any type to X-axis.
They don't align if I set the "category" axis type to X-axis.
It works fine with plotly 1.52.2.
The text was updated successfully, but these errors were encountered: