Using Python 3.8, Plotly 4.13.
Within my scatterplot, I've added multiple vertical lines using add_vline() method in plotly. However I cannot add it to legend allowing me to turn on/off vertical lines.
How can add vertical lines to the legend?
Here is example of how I've created my plot:
fig = go.Figure()
fig.add_trace(
go.Scatter(name="name added to legend", datas...)
)
for dt in dates:
fig.add_vline(x=dt, line_width=1, etc...)
outputting something like this:
all plots created using go.Scatter are added to legend however not vertical lines created by fig.add_vline.

