I’m attempting to move my legend outside of my plot and noticed a discrepancy in the example from : https://plot.ly/javascript/legend/#positioning-the-legend-outside-the-plot And the reference material: https://plot.ly/javascript/reference/#layout-legend
The reference says only values between -2 and 3 are valid, but in the example uses x:100
I’ve tried a number of combinations including moving the xanchor, using values in -100 to 100 and still can’t seem to find what works.
Here’s my full legend object:
legend: {
orientation: ‘h’,
traceorder: ‘reversed’,
x: 0.1, // I’m editing this one
y: 1.2,
font: {
size: 10,
},
},
See examples below of what my plot is doing:
Here is my original plot (I’m trying to move the legend to the left so it doesn’t wrap):
When I set my Lengend: x:-2 :