Skip to content

Scatter3D lines+markers with line color array error #2873

Closed
@jonmmease

Description

@jonmmease

For the scatter3d trace type, an error condition occurs when the line.color property is specified as a numeric array and markers is included in the mode flaglist.

Issue originally reported in of plotly/plotly.py#1093

CodePen: https://codepen.io/anon/pen/ZjjORB

x = [0, 0, 0]
y = [1, 1, 1]
z = [1, 2, 3]
c = [0, 1, 2]
var trace1 = {
    type: 'scatter3d',
    x: x,
    y: y,
    z: z,
    // mode: "lines",
    mode: "lines+markers",
    line: {
        color: c,
        showscale: true,
        width: 10
    }
}


var data = [ trace1 ];

var layout = {};

Plotly.newPlot('myDiv', data, layout);

When running example against plotly-latest.js I get the following JavaScript console error

TypeError: inputContainer is undefined

doUpdate
    https://cdn.plot.ly/plotly-latest.js:79899:13
calc
    https://cdn.plot.ly/plotly-latest.js:79940:5
calcMarkerColorscale
    https://cdn.plot.ly/plotly-latest.js:156566:13
calc
    https://cdn.plot.ly/plotly-latest.js:158689:5
calci
    https://cdn.plot.ly/plotly-latest.js:127889:22
[795]</plots.doCalcdata
    https://cdn.plot.ly/plotly-latest.js:127913:42
[719]</exports.plot
    https://cdn.plot.ly/plotly-latest.js:102574:16
[719]</exports.newPlot
    https://cdn.plot.ly/plotly-latest.js:102973:12

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions