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

**URL:** <https://community.plotly.com/t/when-layout-hovermode-x-unified-traces-arranged-in-order-vs-top-trace-to-lower-trace/42625>\
**Category:** plotly.js\
**Created:** [July 18, 2020, 1:04am UTC](https://community.plotly.com/t/when-layout-hovermode-x-unified-traces-arranged-in-order-vs-top-trace-to-lower-trace/42625 "2020-07-18T01:04:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imsbrdave](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@imsbrdave](https://community.plotly.com/u/imsbrdave)\
**Post date:** [July 18, 2020, 1:04am UTC](https://community.plotly.com/t/when-layout-hovermode-x-unified-traces-arranged-in-order-vs-top-trace-to-lower-trace/42625/1 "2020-07-18T01:04:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://community.plotly.com/u/eric)\
**Post date:** [August 16, 2021, 2:42am UTC](https://community.plotly.com/t/when-layout-hovermode-x-unified-traces-arranged-in-order-vs-top-trace-to-lower-trace/42625/2 "2021-08-16T02:42:37Z")

</div>

Actually, when I opt to _hovermode=‘x unified’_, the values in hoverlabel is fixed according to the value squence of the last value points. This squence does not change when moving cursor along the traces.

I also need more options in hoverlabel like “max\_to\_min” and ‘min\_to\_max’.

Thank you.
