Open halvtomat opened 4 months ago
You linked the template reproducible sample, can you update it to your correct reproducible sample?
You linked the template reproducible sample, can you update it to your correct reproducible sample?
Sorry, apparently I didn't save my example, fixing ASAP
@LeeLenaleee Updated now!
Any update on this issue? @LeeLenaleee
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