Skip to content

Single datum chart on element hover tooltip overflows the chart #254

@emmacunningham

Description

@emmacunningham

Describe the bug
When we only have a single datum chart, the tooltip that appears on hover is positioned either to the left or the right of the element, pushing it outside of the chart.

To Reproduce

  1. create single datum chart
  2. hover over chart element
  3. see tooltip overflowing chart

Expected behavior
Tooltip should be visible within the chart. For single datum charts, we probably want the tooltip to follow the cursor within the element.

Screenshots
single_datum_tooltip

Version (please complete the following information):

  • OS: all
  • Browser all
  • Elastic Charts: 7.0.1

Additional context

Errors in browser console
none

Kibana Cross Issues
n/a

Checklist

  • 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

Labels

:interactionsInteractions related issuebugSomething isn't workingreleasedIssue 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