3D Scatter mode : Lines, error

when I using plotly version 1.0.0 this coordinat is good, but when i using the latest version of plot.ly drawing coordinat is wrong… how to fix this.
x: [316311.185, 316307.236, 316306.5925, 316306.1728, 316305.9564, 316305.7807, 316305.6315, 316305.3899, 316305.1138, 316305.1578, 316305.7421, 316306.8303, 316308.1508, 316309.5202, 316310.7481, 316311.7406, 316312.7409, 316313.6804, 316314.5063, 316315.0915, 316315.4029, 316315.6165, 316315.413, 316314.8452, 316314.3352, 316313.9038, 316313.469, 316312.2791, 316311.5965, 316310.9499, 316310.3065, 316309.7374, 316309.3629, 316309.407, 316309.7611, 316310.1065, 316310.4116, 316310.6956, 316310.9769, 316311.2227, 316311.3994, 316311.5377, 316311.6468, 316311.7308, 316311.8142, 316311.8755, 316311.9245, 316311.9241, 316311.865, 316311.7699, 316311.5931, 316311.3938, 316311.1873, 316310.9607, 316310.7721, 316308.7405],
y: [9742333.505, 9742336.332, 9742336.805, 9742336.675, 9742336.602, 9742337.129, 9742337.58, 9742337.941, 9742338.19, 9742338.207, 9742337.867, 9742337.208, 9742336.263, 9742335.292, 9742334.371, 9742333.438, 9742332.586, 9742331.914, 9742331.279, 9742330.99, 9742331.096, 9742331.401, 9742332.066, 9742332.834, 9742333.687, 9742334.591, 9742335.545, 9742337.747, 9742338.832, 9742339.721, 9742340.154, 9742340.038, 9742339.65, 9742338.996, 9742338.16, 9742337.44, 9742336.84, 9742336.313, 9742335.774, 9742335.275, 9742334.912, 9742334.647, 9742334.448, 9742334.323, 9742334.228, 9742334.19, 9742334.194, 9742334.246, 9742334.356, 9742334.467, 9742334.563, 9742334.669, 9742334.755, 9742334.857, 9742334.983, 9742336.194],
z: [0, -327.351964658104, -355.9408007018, -384.735275264028, -413.431982088566, -442.326641885212, -471.022693470933, -499.619323728405, -528.016858819701, -556.716213313488, -585.407632315233, -613.978874484112, -642.632817247036, -671.383751582649, -700.342872382182, -728.710162974437, -757.680345579645, -786.457104393846, -814.938030377753, -843.729407369052, -872.727508497083, -901.724838423786, -930.515431174814, -959.299582908499, -987.882200539208, -1016.56466051039, -1045.14532221812, -1101.48957625757, -1130.26102517313, -1158.93988061621, -1187.52873129242, -1216.22253280982, -1245.01738289397, -1273.40900834466, -1302.29474723018, -1330.88358228205, -1359.47561287966, -1388.06934047798, -1417.06298134452, -1446.05762260109, -1474.95474699515, -1503.55317909691, -1532.35225800717, -1561.25186323622, -1590.25158444402, -1619.0514873228, -1648.05144474636, -1676.8513771178, -1705.55110029098, -1734.25071965296, -1763.25000414375, -1792.04911649562, -1820.94823747024, -1849.84715873099, -1878.74626373502, -2029.32578134053],

Hi @priantikonur, welcome to the forum! What is wrong with the 3d scatter plot? Could you please share a screenshot of the figure (showing what is wrong) and the complete code generating the figure? Also by latest plotly, which version are you using exactly and for which language (Python, R, or Javascript)?

hello @emmanuelle, thanks for your respond. I appreciated it.
I’m using javascript to make 3D scatter plot.
when I using plotly-1.0.0 the graph its well. the picture below

and then I tried to update plotly using latest version 1.51.1 then the graph is changed to be wrong, the picture below.


could you help me to fix this. I’m using same code and same data but the result of graph its diferent.
below its my code.

var trace1 = {
    x: [316311.185, 316307.236, 316306.5925, 316306.1728, 316305.9564, 316305.7807, 316305.6315, 316305.3899, 316305.1138, 316305.1578, 316305.7421, 316306.8303, 316308.1508, 316309.5202, 316310.7481, 316311.7406, 316312.7409, 316313.6804, 316314.5063, 316315.0915, 316315.4029, 316315.6165, 316315.413, 316314.8452, 316314.3352, 316313.9038, 316313.469, 316312.2791, 316311.5965, 316310.9499, 316310.3065, 316309.7374, 316309.3629, 316309.407, 316309.7611, 316310.1065, 316310.4116, 316310.6956, 316310.9769, 316311.2227, 316311.3994, 316311.5377, 316311.6468, 316311.7308, 316311.8142, 316311.8755, 316311.9245, 316311.9241, 316311.865, 316311.7699, 316311.5931, 316311.3938, 316311.1873, 316310.9607, 316310.7721, 316308.7405],
    y: [9742333.505, 9742336.332, 9742336.805, 9742336.675, 9742336.602, 9742337.129, 9742337.58, 9742337.941, 9742338.19, 9742338.207, 9742337.867, 9742337.208, 9742336.263, 9742335.292, 9742334.371, 9742333.438, 9742332.586, 9742331.914, 9742331.279, 9742330.99, 9742331.096, 9742331.401, 9742332.066, 9742332.834, 9742333.687, 9742334.591, 9742335.545, 9742337.747, 9742338.832, 9742339.721, 9742340.154, 9742340.038, 9742339.65, 9742338.996, 9742338.16, 9742337.44, 9742336.84, 9742336.313, 9742335.774, 9742335.275, 9742334.912, 9742334.647, 9742334.448, 9742334.323, 9742334.228, 9742334.19, 9742334.194, 9742334.246, 9742334.356, 9742334.467, 9742334.563, 9742334.669, 9742334.755, 9742334.857, 9742334.983, 9742336.194],
    z: [0, -327.3, -355.9, -384.7, -413.4, -442.3, -471.0, -499.6, -528.0, -556.7, -585.4, -613.9, -642.6, -671.4, -700.3, -728.7, -757.7, -786.5, -814.9, -843.7, -872.7, -901.7, -930.5, -959.3, -987.9, -1016.6, -1045.2, -1101.5, -1130.3, -1158.9, -1187.53, -1216.2, -1245.02, -1273.41, -1302.3, -1330.9, -1359.5, -1388.1, -1417.1, -1446.1, -1474.951, -1503.55317909691, -1532.35225800717, -1561.25186323622, -1590.25158444402, -1619.0514873228, -1648.05144474636, -1676.8513771178, -1705.55110029098, -1734.25071965296, -1763.25000414375, -1792.04911649562, -1820.94823747024, -1849.84715873099, -1878.74626373502, -2029.32578134053],
    mode: 'lines',
    marker: {
        color: '#1f77b4',
        size: 120,
        symbol: 'circle',
        line: {
            color: 'rgb(0,0,0)',
            width: 10
        }
    },
    line: {
        color: '#1f77b4',
        width:20
    },
    type: 'scatter3d'
};

thanks for your help :slight_smile:

Hi @priantikonur, it sounds like a bug. I’ve opened an issue on the plotly.js repo https://github.com/plotly/plotly.js/issues/4421

thanks a lot for your help @Emmanuelle :slight_smile: