I am trying to show the respective yaxis of the series clicked and hide the rest. I am able to achieve this by using Plotly.newplot but i am able to achieve the same with Plotly.update.
I have created a codepen and please try this by commenting the newplot line and uncommenting the update.
Please advice!
(note: the issue is, if i use newplot the click event is no more active.)