-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
What needs to be done? Why does it need to be done?
In most cases we want the following default tooltip behavior in a chart:
- consistent width even when close to the edge
- kept within the boundaries of the chart when possible
- flip placement to left/right and top/bottom when close to the edge
There have been two implementations of this in the wild so far, in Spotlight and the Admin panel, both of them somewhat specific to the specifics of the chart. It should be possible to create a more generic implementation of this approach that works for other frame and chart types. (Probably it will require consumers to pass in the chart dimensions, because the tooltip data does not contain this.)
Additional context
some related issues in Spotlight here ... it could adopt more design system features if they resolved this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels