Recent versions of plotly have a automargin feature enabled by default, which should help workaround this problem, but there are cases where the constraints of the plot's container make it impossible to display the string sensibly. In this case, you might want to specify the layout.margin.l and/or layout.width