✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

When layout hovermode = 'x unified', traces arranged in order vs top trace to lower trace

In switching the layout hovermode to ‘x unified’, noticed that the traces are arranged in order versus from highest to lowest trace value. For example, in plotting temperature values in a time series, the highest value is 90 and the lowest is 75. When hovermode is ‘x’, that’s how the hoverlabels are displayed for the 20 traces. However, when hovermode is ‘x unified’, trace 20 is at the top and trace 1 is at the bottom instead of being arranged by highest temperature value to lowest. I couldn’t find a reason for this nor could I find an option on how to change it to the way hovermode ‘x’ displays it. For my application, it makes more sense to display it by trace value vs sorted trace index.