I'm trying to make a Parallel Coordinates plot with plotly.graph_objs Here is my code.
'''
import plotly.graph_objs as go
layout = go.Layout( autosize=False, width=800, height=600)
fig = go.Figure(data =
go.Parcoords(
dimensions = list([
dict(range = [1,9],
label = 'col1', values = df.col1),
dict(range = [1,9],
label = 'col2', values = df.col2),
dict(range = [1,9],
label = 'col3', values = df.col3)
])
), layout = layout
)
fig.show()
'''
This graph works, but I need to reversed y-axis. Here 3 are what i tried
- fig.update_layout(yaxis=dict(autorange="reversed"))
- fig.update_yaxes(autorange='reversed')
- fig['layout']['yaxis']['autorange'] = 'reversed' But none of these works. How would I have a reversed graph?
If I understood correctly you could just reverse the
range
parameter:Before (fake data):