Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Ids parameter available only for Scatter plots

Hi all,

I also opened an issue here

But it seems that the ids parameter is only available for Scatter plot even if in the documentation is described for pretty most every kind of plot.
This the small piece of code with a Box plot (with error) and same data with a Scatter plot (perfectly working):

import plotly
import plotly.graph_objs as go

# plotly version is 2.0.1

# x and y lists
f1 = [1, 3, 3, 1, 2, 2, 2, 2, 3, 3, 1, 3, 3, 3, 3, 2, 3]
f2 = [1046.67, 1315.0, 1418.0, 997.33, 2972.3, 9700.0, 6726.0, 6002.5, 2096.0, 2470.0, 867.0, 2201.7, 1685.6, 2416.7, 1618.3, 2410.0, 2962.0]
# id list
f5 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]


# building the trace with the lists 
trace1 = [go.Box(
x = f1,
y = f2,
ids = f5,
)]

# building the figure and plotting the data
fig = go.Figure(data=trace1)
plotly.offline.plot(fig)



# building the trace with the lists 
trace1 = [go.Scatter(
x = f1,
y = f2,
ids = f5,
mode='markers'
)]

#building the figure and plotting the data
fig = go.Figure(data=trace1)
plotly.offline.plot(fig)

[resolved]
You will need an updated version of the plotly.js library for ids to be valid in other chart types.
You can upgrade your plotly.py version with pip install plotly --upgrade (latest version is (2.0.12)
or use plotly.plotly.plot() (online rather than offline)

perfect! many thanks for the answer!