Parcoords opacity not working

currently using package version 2.0.15, I’m not capable to add transparency to parallel coordinates line using opacity parameter

example:
import plotly.plotly as py
import plotly.graph_objs as go

data = [
go.Parcoords(
line = dict(color = ‘blue’),
opacity = 0.5,
dimensions = list([
dict(range = [1,5],
constraintrange = [1,2],
label = ‘A’, values = [1,4]),
dict(range = [1.5,5],
tickvals = [1.5,3,4.5],
label = ‘B’, values = [3,1.5]),
dict(range = [1,5],
tickvals = [1,2,4,5],
label = ‘C’, values = [2,4],
ticktext = [‘text 1’, ‘text 2’, ‘text 3’, ‘text 4’]),
dict(range = [1,5],
label = ‘D’, values = [4,2])
])
)
]

py.iplot(data, filename = ‘parcoord-dimensions’)

What am I doing wrong?

1 Like

I have the same question. Is it possible to habe opacity in parallel coordinates?

Best regards!

@Varlor
Take a look at parcoords attributes: https://github.com/plotly/plotly.js/blob/master/src/traces/parcoords/attributes.js. Since color isn’t an attribute you cannot set opacity.
Parcoords work with colorscale(s).