Update y axis domain when zoomed on x axis

Following is a working example of the desired behavior, that is, to have the y axis range update as a different x axis range is selected.

It works as expected. The only remaining issue is that the range slider y axis changes and therefore does not display the traces in full (it is also always the case with log yaxis scale, as reported in Range slider doesn't display trace when y axis set to log scale)