https://codepen.io/cpsievert/pen/xdjgXo Change the trace type to "scatter" (in both traces) -- the yanchor of the xaxis changes