Replies: 2 comments 4 replies
-
AFAIK that's not possible because line charts are using points as data elements. Maybe it could be an enhancement, I guess |
Beta Was this translation helpful? Give feedback.
2 replies
-
If you don't use any tension you could parse the datasets, get the point where the x coordinate is left of your click, get the point right of the x coordinate where you clicked, use math to make a y=ax+b formula, then you enter for the x the x where you clicked and then you can check if the y is the same or approximately the same as the y where you clicked |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
Is there any way to interacting with lines instead of points?
We want to select dataset with click on the line. I tried the interactions of the chart options and "getElementsAtEventForMode" method but none of them didn't give me the line. Has anyone tried this before?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions