Closed
Description
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