Parallel coordinates with Plotly offline on Python?

Hi to all,

Anyone has information (solution) to generate a parallel coordinates with Plotly offline on Python ?
The online version works OK.

Many thanks,
VGA

I think you just need to update your Python version. It probably doesn’t have the latest plotly.js download.

Already done but with no effect.

@vga have you updated to 2.0.6? That’s the version with the latest plotly.js download for offline.

Yes.

the following code is used:

from plotly.offline import plot #python package for semi interactive plots and HTML format
from plotly import tools #python package for semi interactive plots and HTML format
import plotly.graph_objs as go #python package for semi interactive plots and HTML format

data = [
go.Parcoords(
line = dict(color = ‘blue’),
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])
])
)
]

plot(data, filename=‘my-graph.html’, image=‘png’);

Sorry @vga, it’s version 2.0.7 (not 2.0.6) that you’ll need: https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#207---2017-04-07

Excellent. It works now
Many thanks.