Skip to content

Dash Tutorial incorrect for Generic Crossfilter Recipe #3267

Open

Description

@lukas48

throws keyerror "customdata"

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

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

Activity

  1. added
    documentation
    bug
    P2
    on Apr 10, 2025
  2. gvwilson commented on Apr 10, 2025

    @gvwilson
    Contributor

    @LiamConnors @T4rk1n simple fix to tutorial?

  3. T4rk1n commented on Apr 10, 2025

    @T4rk1n
    Contributor

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

  4. LiamConnors commented on Apr 10, 2025

    @LiamConnors
    Contributor

    Yes, I believe it's this issue with plotly.py 6: plotly/plotly.py#5119

    Image

    The example works with 5.24

  5. added
    regression
    P1
    and removed
    P2
    on Apr 14, 2025
  6. removed their assignment
    on Apr 23, 2025
  7. AnnMarieW commented on Nov 14, 2025

    @AnnMarieW
    Collaborator

    Looks like this might have been fixed in plotly/plotly.js#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)
    
  8. AnnMarieW commented on Nov 25, 2025

    @AnnMarieW
    Collaborator

    related issues #3307 #3196

  9. emilykl commented on Dec 3, 2025

    @emilykl
    Contributor
  10. emilykl commented on Dec 3, 2025

    @emilykl
    Contributor

    The first example on this page is broken as well; we should see customdata in the JSON displayed below the plot, but it is not there: https://dash.plotly.com/interactive-graphing

    (thanks @AnnMarieW!)

  11. ndrezn commented on Dec 10, 2025

    @ndrezn
    Contributor

    This would be great to fix given the downstream issues it would also solve. @emilykl is taking a look at this.

  12. T4rk1n commented on Nov 25, 2026

    @T4rk1n
    Contributor

    The Dash side is fixed in 4.5.1 by #4076: numeric NumPy/pandas customdata is back in selectedData, clickData and hoverData with plotly.py 6. Checked with the crossfilter recipe pattern (customdata=df.index, box select): every selected point carries its integer customdata. dash.plotly.com still runs Dash 4.3.0, so the docs example stays broken until the docs app moves to 4.5.1 or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1bugdocumentationregression

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions