Can Plotly offset the legend from the axis automatically?

There was something about multiple axes, not sure if this helps you, though