Background/shadow for date ranges under line chart

Hi, Iโ€™m pretty new to Plotly and Python in general. I have an idea in my head and donโ€™t know how to achieve particular effect (plot). Can you help? :slight_smile:

I want to plot a time series, but apart from the standard chart, I would like to be able to set a background/shadow of particular color for particular date, depending on some criteria (e.g. if the price is rising - green, if falling - red, and if constant - yellow).
Please see the attached ugly doodles illustrating the concept. :slight_smile:

Is it (or anything similar) even possible in Plotly or any other library?

Welcome to Python and Plotly, @BishKopt

What you called background/shadow in your question is a shape in Plotly, and yes you can plot
timeseries with shapes.

Here is an example to see how the shapes are defined:

@empet, thanks makes sense. I found this example and was very good tooโ€ฆ