You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to retrieve a custom identifier (a string) linked to a scatter object, by clicking on it. As per documentation of go.Scatter, customdata is meant for this task, but it is not behaving as expected.
Upgrading to the latest versions of plotly and dash will fix the issue when clickData does not contain customdata. The new versions have fixed this issue, and you will get the expected information from customdata when you click on a graph.
My environment
The bug
This bug is very similar to another one that was fixed last year, described here https://github.com/plotly/dash/issues/1663 .
I want to retrieve a custom identifier (a string) linked to a scatter object, by clicking on it. As per documentation of go.Scatter, customdata is meant for this task, but it is not behaving as expected.
Here is a sample code:
Expected behavior
clickData should contain the customdata defined in the constructor of go.Scatter. Unfortunately it doesn't.
Screenshots
As one can see on the screenshot below, when clicking on an object, clickData contains its point values, but not the custom data information:
The text was updated successfully, but these errors were encountered: