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 expect the method to return elements at the event position regardless of the values in the data. (Even with includeInvisible = true)
I need the elements to sync a crosshair in other graphs based on the cursor location in this graph so whatever the element data values are is not relevant for my use case.
I understand that this might be expected or desired behavior in all cases but it should at least be optional.
The problem stems from these 2 code snippets in the following files.
Expected behavior
I expect the method to return elements at the event position regardless of the values in the data. (Even with includeInvisible = true)
I need the elements to sync a crosshair in other graphs based on the cursor location in this graph so whatever the element data values are is not relevant for my use case.
I understand that this might be expected or desired behavior in all cases but it should at least be optional.
The problem stems from these 2 code snippets in the following files.
core/core.interaction.js
src/controllers/controller.line.js
Current behavior
The method filteres out elements that are null from the results.
Reproducible sample
https://codepen.io/halvtomat/pen/vYMYyMR
Optional extra steps/info to reproduce
Check console for elements at mouse position, drag the mouse over the area with null points, console should be filled with
ELEMENTS []
Possible solution
No response
Context
No response
chart.js version
v4.2.1
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: