Skip to content

Re-position chart annotation when it is near the border #1040

@pheyos

Description

@pheyos

Is your feature request related to a problem? Please describe.
The date label of the event rate chart in the ML revert model snapshot flyout does not look ideal when it is near the border of the chart:
image

See codesandbox repro here https://codesandbox.io/s/sad-pond-n2pqh?file=/src/App.tsx

image

Describe the solution you'd like
Leave the small arrow where it is but re-position the text such that it is better readable / does not contain so many line breaks.

Additional context
In a slack discussion, it was suggested to reuse tooltip functionality to do this.

Metadata

Metadata

Assignees

Labels

:annotationAnnotation (line, rect, text) 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