Hi everyone,
I am unable to configure item double click property, it always isolates traces. Here is the code I am using
fig.update_layout(
legend=dict(itemdoubleclick="toggle", itemclick="toggleothers")
)
Hi everyone,
I am unable to configure item double click property, it always isolates traces. Here is the code I am using
fig.update_layout(
legend=dict(itemdoubleclick="toggle", itemclick="toggleothers")
)
Hi @mradul_me,
I just tested it with the following example with plotly 4.13.0 on jupyterlab 2.2.9 and it works as expected.
import plotly.express as px
df = px.data.gapminder().query("year==2007")
fig = px.scatter(df, x="gdpPercap", y="lifeExp", color="continent",
size="pop", size_max=45, log_x=True)
fig.update_layout(legend=dict(
itemdoubleclick="toggle", itemclick="toggleothers",
yanchor="top",
y=0.99,
xanchor="left",
x=0.01
))
Maybe your double click is too slow…
Thank you @Alexboiboi,
I considered the slow double click and I tried clicking repeatedly on my plot, most of the times it was having isolate trace behaviour, only sometimes it toggled.