Trigger onElementClick when clicking anywhere on line/area charts #828
Labels
enhancement
New feature or request
:interactions
Interactions related issue
:xy
Bar/Line/Area chart related
Is your feature request related to a problem? Please describe.
I'm trying to build an area chart which allows the user to jump to a point in time when they click on it. Using
onElementClick
, this works when I click exactly on a point:But when I click slightly next to a point, it doesn't work, even though there's still a tooltip present:
Describe the solution you'd like
I'd like to be able to trigger
onElementClick
if I click anywhere on the chart. If I'm not clicking exactly on a point, I'd like to trigger theonElementClick
corresponding to whichever point is being displayed in the tooltip.This behavior could be enabled by a prop, e.g.:
Kibana Cross Issues
Not exactly a cross-issue, but this would be very useful for elastic/kibana#73962
Checklist
Kibana Cross Issues
listThe text was updated successfully, but these errors were encountered: