Interface ValueClickHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onValueClick
(ValueClickEvent event) Fires when a data value is clicked, and provides information about the data value that was clicked as aDrawnValue
object.
-
Method Details
-
onValueClick
Fires when a data value is clicked, and provides information about the data value that was clicked as aDrawnValue
object.Specifically, this fires for clicks on pie slices, bars or columns, areas, lines or points (in a Bubble or Scatter plot).
If there are multiple data values at the clicked position, you can use
getNearestDrawnValues()
to discover the full list of values at the current coordinate (pass ingetOffsetX/Y()
for the coordinates).If you want to create behaviors for clicking or moving near shapes without requiring a direct hit, implement a standard
Canvas.click()
handler on the FacetChart as a whole and usegetNearestDrawnValue()
to discover the nearest data values.- Parameters:
event
- the event
-