title: Plotly: How to control which trace is in front for double y-axes?
body: <p>I have a double y-axis plot that looks like this:</p>
  <p><a href="https://i.stack.imgur.com/WsQe8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WsQe8.png" alt="enter image description here" /></a></p>
  <p>In this example, the bars are on the secondary y-axis. However, I want the line to be in front of the bars. I thought doing <code>yaxis2=dict(overlaying='y1')</code> would solve the issue, but nothing different occurred. The only hackish solution I have come up with so far is to turn the opacity down on the bars so you can actually see the line. Surely though there is a way to fix this that I am missing.</p>