Change Position of Hoverlable

I would like to position the hover text across the top on the x-axis on the chart similar to the image.

The reference chart is taken from here:

I am unable to find any reference for it till now.

Just set hovermode=‘x’ or more precisely: