fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: Tooltip Overflows Chart Container and Lacks Position Customization

Open Paula-Pun opened this issue 1 year ago • 1 comments

Charting Control

LineChart

Package version

9.0.5

React version

17.0.2

Environment

https://stackblitz.com/edit/yhymp8ot?file=src%2Fexample.tsx

Current Behavior

Currently, the line chart component tooltip appears above the selected point and can overflow out of the component container, blocking other content or is cut off by parent layout components (ex. filter bar). There is not a way for users to customize the positioning of the tooltip ("below", "before", etc).

When the tooltip is cutoff due to appearing under a parent component, the current workaround is to modify the zIndex so that it appears above.

Expected Behavior

Allow users to specify the LineChart's tooltip positioning ("below", "before", etc) or auto position the tooltip so that it does not overflow outside LineChart container

Reproduction

https://stackblitz.com/edit/yhymp8ot?file=src%2Fexample.tsx

Steps to reproduce

  1. Go to [https://stackblitz.com/edit/yhymp8ot?file=src%2Fexample.tsx](https://stackblitz.com/edit/yhymp8ot?f…
  2. Hover over the line chart points, see that tooltip overflows container, blocking other content, without ability to set tooltip to a different position

Are you reporting an Accessibility issue?

None

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [x] The provided reproduction is a minimal reproducible example of the bug.

Paula-Pun avatar Oct 06 '25 20:10 Paula-Pun

Not repro.

Anush2303 avatar Oct 09 '25 10:10 Anush2303