Black Lives Matter. Please consider donating to Black Girls Code today.

X-axis hover label enabled when hovermode = "closest"

Hi. I am wondering if there is any way to enable the x-axis hover label to appear, even when hovermode is set to “closest”? Basically, I want to combine the two hovermodes “closest” vs. “compare all data”, in which the x-axis hover label is still shown but instead of creating hoverlabels for all traces, it still only creates a hoverlabel for the closest trace.

In the example below, I am ideally wanting only the purple label to show next to the closest trace, but still have the grey label along the x-axis that says the year at the bottom. Is this possible?