Dashboard API - Box's positionning - Logic behind?

What is the logic behind the chart positioning in the dashboard API, using python ? Without using jupyter notebook.

Is it random ?

Currently I am using the following logic. meaning I believe my first plot is 1, then I control where I put the 2nd chart, using the location wording ‘below’ with 1 as a reference (i.e, ‘below’,1), then I plot the 3rd using the 2nd as a refence (‘below’,2), etc… However, at a point, it all goes wrong, and this logic is not working anymore.