Is legendrank deprecated and what's its replacement?

I’m having an error when trying to use legendrank on:

fig = go.Figure()

fig.add_trace(go.Scatter(…legendrank=900…)

I’m getting:

ValueError: Invalid property specified for object of type plotly.graph_objs.Scatter: ‘legendrank’

But here in the reference link, it’s there:

Has this been deprecated and is there a replacement?

Thanks for you help

The legendrank property has been introduced in version 5. You are probably using an older major version. :wink:

hope it helps,

Alex-

1 Like

Ahh ok…I’ll upgrade then, thanks!