[Fixed] When using addTraces the first plot trace has no more hover interaction

Hi all,

In this example I try to propose a simplified version of what I want to achieve.

https://codepen.io/kimaidou/pen/MWXdmOZ

Basically I am trying to add a new trace to an previously created plot.

It works, but I do not understand why the first trace data cannot be hovered anymore. Only the orange bar can be hovered, and not the blue line dots.

Do you have any clue ?

Hover seems to work only of the 2 traces share the same Y axis (See update example with second plot).

But I cannot do that because the units are different (mm for rainfall and m3/s for flow).

found !!

I added overlaying: ‘y’ to the yaxis2 layout property, and it works now.