Skip to content

Click event for points in close proximity  #548

@nickofthyme

Description

@nickofthyme

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.

Screen Recording 2020-02-11 at 09 15 AM

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.
Screen Recording 2020-02-11 at 09 14 AM

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

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussTo be discussedenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions