Line style conditional on index

Hi @farispriadi , thanks for your response, it works!

I changed your code slightly for the hover data to not appear on the vertical line. I used

"hoverinfo":"skip",

instead of

"hovertemplate": None

I have one remaining issue. The historical line shows “trace 0” next to the hover data and the forecast line shows “trace 1”. How can I change those to “actual” and “forecast” respectively? Or otherwise hide the “trace 0” and “trace 1” (while keeping the hover data)?

This threat suggests the underlying data needs to change but I don’t know how I need to change it.