Listener to react on mouse clicks on data points #431
Unanswered
magicroomy
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Because the rendering is based on the canvas and not on the scene graph, you cannot directly get a listener to individual data points. As the DataPointTooltip plugin solves a similar problem, you can probably use a lot of its code to create your own plugin. See here how the mouse listener is set up. It also has the code necessary to find the closest data point to the clicked mouse position (Not trivial, because a chart can have multiple renderers with different axes, datasets can be added to multiple renderers at the same time, datareduction). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for an example to establish a listener to react on the user clicking on a single data point (Entry in a dataset). So I could direct the user to the "detail" of the point in another window.
If it is important: I use DoubleErrorDataSets in XY Graphs.
Beta Was this translation helpful? Give feedback.
All reactions