Index plot with plotly

Hi,

I would like to make the following type of index plot via plotly, but do not understand which function to use. The data is sequential and consists of discrete events.

Can someone please recommend?

image

Thank you!