Hi there.
I have a 3d graph that I render like below.
So the view on the graph is from a diagonale angle (looking into the corner of x,y,z). But because of this, the upper part of the graph is out of the viewport… And so I always need to pan the graph into position, a bit down. Is there a way to set this by config or by some javascript call ?
Kind regards
{
"data": [
{
"type": "scatter3d",
"mode": "markers",
"marker": {
"color": "rgb(1,87,155)",
"size": 2
}
}
],
"layout": {
"margin": {
"l": 0,
"r": 0,
"t": 0,
"b": 0
},
"autosize": true,
"scene": {
"aspectratio": {
"x": 1,
"y": 1,
"z": 1
},
"camera": {
"center": {
"x": 0,
"y": 0,
"z": -0.5
},
"eye": {
"x": 1.5,
"y": 1.5,
"z": 1
},
"up": {
"x": 0,
"y": 0,
"z": 1
}
},
"xaxis": {
"autotick": false,
"tickmode": "linear",
"ticks": "outside",
"tick0": 0,
"dtick": 1,
"ticklen": 1,
"tickwidth": 1,
"gridwidth": 1,
"title": {
"text": "x"
},
"autorange": "reversed"
},
"yaxis": {
"autotick": false,
"tickmode": "linear",
"ticks": "outside",
"tick0": 0,
"dtick": 20,
"ticklen": 1,
"tickwidth": 1,
"gridwidth": 1,
"title": {
"text": "y"
}
},
"zaxis": {
"autotick": false,
"tickmode": "linear",
"ticks": "outside",
"tick0": 0,
"dtick": 4.38,
"ticklen": 1,
"tickwidth": 1,
"gridwidth": 1,
"title": {
"text": "z"
}
}
}
}
}