Change colors of the line by different dates

@dfernan In order to color a line with different colors, you should define a scatter plot of mode='lines' for each Q, and set the corresponding color. In this case your data is a list of as many traces as Qs you have.
What you call background shadow is a shape in Plotly. Here is an example of shape definition given as answer for another forum question https://community.plotly.com/t/background-shadow-for-date-ranges-under-line-chart/7965/2.

1 Like