Skip to content

scatter3d.line.showscale doesn't show a colorscale #2862

Closed
@jonmmease

Description

@jonmmease

This report is a translation of plotly/plotly.py#1085

It seems that the scatter3d.line.color and scatter3d.line.colorscale properties can be used to specify a line with a variable color along it's path (which is awesome!). There is also as scatter3d.line.showscale property in the schema, but setting this to true does not show a colorscale.

Not sure if the bug is the scale not showing, or the presence of the showscale property. Thanks!

Codepen: https://codepen.io/anon/pen/vaRLgy

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",
    line: {
        color: c,
        showscale: true,
        width: 10
    }
}


var data = [ trace1 ];

var layout = {};

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

screen shot 2018-08-01 at 5 28 15 am

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions