Enables automatic linking by matching clicked coordinates to data rows. This function is used during ID extraction when customdata/key parameters are not available, providing zero-configuration automatic linking.
smart_coordinate_lookup(data, clicked_x, clicked_y, id_column)The matched ID or NULL
Data frame with the original data
X coordinate from plotly event
Y coordinate from plotly event
Name of the ID column