dash icon indicating copy to clipboard operation
dash copied to clipboard

Dash Tutorial incorrect for Generic Crossfilter Recipe

Open lukas48 opened this issue 8 months ago • 7 comments

throws keyerror "customdata"

selectedpoints, [p["pointNumber"] for p in selected_data["points"]]

"pointNumber" replaces "customdata" then it worked for me

lukas48 avatar Apr 10 '25 09:04 lukas48

@LiamConnors @T4rk1n simple fix to tutorial?

gvwilson avatar Apr 10 '25 15:04 gvwilson

Would that be from the update to plotly.py 6 ?

T4rk1n avatar Apr 10 '25 15:04 T4rk1n

Yes, I believe it's this issue with plotly.py 6: https://github.com/plotly/plotly.py/issues/5119

Image

The example works with 5.24

LiamConnors avatar Apr 10 '25 15:04 LiamConnors

Looks like this might have been fixed in https://github.com/plotly/plotly.js/pull/7608 ?

Update - the PR above did not resolve the issue.

As a workaround the example in the docs can be fixed if customdata is a list:

customdata=list(df.index)

AnnMarieW avatar Nov 14 '25 16:11 AnnMarieW