When starting to replace line charts in kibana, I noticed the selection of points that are in very close proximity to each other are ignored.
Kibana today
Notice how now matter where I hover the value is always the top-most value, unless the points far enough apart to warrant a distinction. This effectively makes it impossible for the user to filter on a point that is grouped very closely.

Elastic charts
In Elastic charts, we show/return all points within a given threshold of the click coordinates, notice the selected series in the tooltip.

The problem
The issue I am having is related to filtering from the click event. Elastic charts will send me an array of selected points. I could use this in the filter prompt to allow the user to select the undesirable options but enabling all filter would show no results. Ideally this would not be needed as it promotes a sad path. 😞 Ideally the selection is handled in elastic charts and shows only one point

The solution
After discussing with @markov00 he suggested there be a tooltip selection within elastic charts, whereby clicking near three points will have you select what series you want before emitting the event, with the one series.
I don't know how this will impact pie charts @monfera
I would love any ideas on how we could best handle this in elastic charts.
Marco and I discussed a different onSelect event to include multple items but I think that the click should be only a single point, where click and drag region would return all points/things within the selection.
Kibana cross issues
There doesn't appear to be a kibana issue for this after a cursory search.
cc. @elastic/kibana-design @timroes @AlonaNadler
When starting to replace line charts in kibana, I noticed the selection of points that are in very close proximity to each other are ignored.
Kibana today
Notice how now matter where I hover the value is always the top-most value, unless the points far enough apart to warrant a distinction. This effectively makes it impossible for the user to filter on a point that is grouped very closely.
Elastic charts
In Elastic charts, we show/return all points within a given threshold of the click coordinates, notice the selected series in the tooltip.

The problem
The issue I am having is related to filtering from the click event. Elastic charts will send me an array of selected points. I could use this in the filter prompt to allow the user to select the undesirable options but enabling all filter would show no results. Ideally this would not be needed as it promotes a sad path. 😞 Ideally the selection is handled in elastic charts and shows only one point
The solution
After discussing with @markov00 he suggested there be a tooltip selection within elastic charts, whereby clicking near three points will have you select what series you want before emitting the event, with the one series.
I would love any ideas on how we could best handle this in elastic charts.
Marco and I discussed a different
onSelectevent to include multple items but I think that the click should be only a single point, where click and drag region would return all points/things within the selection.Kibana cross issues
There doesn't appear to be a kibana issue for this after a cursory search.
cc. @elastic/kibana-design @timroes @AlonaNadler