Plot background. How can i setup it?

There’s layout.plot_bgcolor, but that only support single colors.

For your needs, I’d recommend using layout.shapes, similar to in this example: https://plot.ly/javascript/shapes/#highlighting-time-series-regions-with-rectangle-shapes

1 Like