Shapes in plotly.js (react js)

Hello, documentation here is missing : layout.shapes | JavaScript | Plotly
I want to find out how to make a shape(vertical dashed line) with 100% height of my dynamic histograph, I made a vertical line there, but I don’t know how to make it full height of my graph.

Here is that part of my code:
<Plot data={someData} layout={{
shapes: [
{
x0: x,
y0: 100,
x1: x,
y1: (maximum Height Value should go here),
line: {
color: “red”,
width: 3,
dash: “dash”,
},
},
],
}}
/>

I think it could be some better solution, but documentation there is missing.