How to add Vertical line to all subplots ? is there any way to get plotted subplot's maximum and minimum value

Hi Community,
I want to add Vertical line on Javascript plotly same like v_add i.e in python but here i’ve to put manually y-max and y-min value, so is there any way to get the plotted graph’s maximum and minimum value?
if i keep y-ref=“paper” then single line is plotting in all the subplots .