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 seems to be intended. See the plotly.js docs :
Sets the legend's horizontal position anchor. This anchor binds the x position to the "left", "center" or "right" of the legend. Value "auto" anchors legends to the right for x values greater than or equal to 2/3, anchors legends to the left for x values less than or equal to 1/3 and anchors legends with respect to their center otherwise.
Seems like you have to controll the position additionally via increasing X:
Type: number between or equal to -2 and 3
Sets the x position (in normalized coordinates) of the legend. Defaults to "1.02" for vertical legends and defaults to "0" for horizontal legends.
so a combination of X = 1 and XAnchor = "right" should work.
Description
When I try to orient a legend,
YAnchorPosition
works as I expect butXAnchorPosition
does not seem to have an effect.Repro steps
These charts look the same to me:
Expected behavior
I expect the left chart to be as it is but I expect the right chart's legend to be right-aligned at x=0.
Actual behavior
the legend positions are the same.
Related information
The text was updated successfully, but these errors were encountered: