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
{{ message }}
Repository navigation
X-coordinates are duplicated in plotly_click points #6747
when a plotly.js graph fires a plotly_click event over a timeline plot, the bbox given in click event.points contains incorrect x coordinate data. Both x coordinates are the same.
changed the title [-]Bug: X-coordinates are duplicated in plotly_click points[/-][+]X-coordinates are duplicated in plotly_click points[/+]on Aug 9, 2024
Hi @Erhanjinn, as of plotly.js v4.0.0 this can be accomplished using the xPixel and yPixel keys of the click event data (added in #7966), which give the x and y pixel position of the cursor.
Activity
[-]Bug: X-coordinates are duplicated in plotly_click points[/-][+]X-coordinates are duplicated in plotly_click points[/+]emilykl commentedon Aug 28, 2026
Hi @Erhanjinn, as of plotly.js v4.0.0 this can be accomplished using the
xPixelandyPixelkeys of the click event data (added in #7966), which give the x and y pixel position of the cursor.Console output: