Skip to content

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

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 1, 2018 · 1 comment
Closed

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

jonmmease opened this issue Aug 1, 2018 · 1 comment
Assignees
Labels
feature something new

Comments

@jonmmease
Copy link
Contributor

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

@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

Good catch @jonmmease !

line.showscale was added in the scatter3d attributes since the first scatter3d line.colorscale PR (-> #617), but never got implemented.

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

No branches or pull requests

3 participants