Skip to content

Crosshair and vertical/horizontal cursors  #80

@markov00

Description

@markov00

Is your feature request related to a problem? Please describe.
Add the possibility to switch between simple element tooltip to multi/element tooltips like vertical or horizontal cursors or crosshair.
screenshot 2019-02-28 at 15 24 02
Describe the solution you'd like

The user/developer can select the type of tooltip that's better conforms for the chart use to enable the following possibilities:

Describe alternatives you've considered

Various solutions can be applied:

  • remove the existing listeners to graphic elements and use directly mouse coordinates to mapping series data values getting series values from inverted x and y scales or use some spatial index for faster searches like https://github.com/mourner/flatbush
  • draw a hidden layer of grouped elements with listener attached to it (can be slow and can only works on vertical and horizontal cursors.

design note: the tooltip could be crowded specially with multiple splitted series.
extra: this can solve the following issue: #58

Additional context

TVSB, charts used by Stack Monitor and any other chart that use react-vis in kibana currently has the possibility to include a vertical cursor on the chart instead of the tooltip.

Kibana Cross Issues

Checklist

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

Labels

:interactionsInteractions related issueenhancementNew feature or requestkibana cross issueHas a Kibana issue counterpartreleasedIssue released publicly

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