Skip to content

Scatter3D lines+markers with line color array error #2873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonmmease opened this issue Aug 5, 2018 · 1 comment
Closed

Scatter3D lines+markers with line color array error #2873

jonmmease opened this issue Aug 5, 2018 · 1 comment
Assignees
Labels
bug something broken

Comments

@jonmmease
Copy link
Contributor

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
@etpinard etpinard changed the title Scatter3D lines+markers with color array error Scatter3D lines+markers with line color array error Aug 7, 2018
@etpinard etpinard added the bug something broken label Aug 7, 2018
@etpinard
Copy link
Contributor

cc @antoinerg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

4 participants