Is grid - rows not working?

in the layout of javascript plotly, there is a grid – rows ( However, when I set an integer, I got errors. Please see here,

Besides, is it possible to customize the grid style, i.e. color, width, etc?

What are you trying to do exactly here?

Your graph has one x axis and one y axis, layout.grid isn’t going to help with anything.