-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
featuresomething newsomething new
Description
- Add the possibility to combine the existing directions:
direction="bottom+right". dbc.Tooltip already includes this in theirplacementargument: https://dash-bootstrap-components.opensource.faculty.ai/docs/components/tooltip/ - (maybe) add an
offsetargument that allows developers to specify the distance between the hover point and the hover box. Some developers want the box to be further from the data point so that it (the data point) and its context can be seen better. It could look something likedcc.Tooltip(..., offset={"x":"15px", "y":"0px"})
Related requests:
Relevant code:
- https://github.com/plotly/dash/blob/master/components/dash-core-components/src/components/Tooltip.react.js#L44-L98
- Suggestion: make code combine the X and Y values of class
.hover-rightand.hover-bottomin thetransform: translate(X,Y)code
Workaround with css
assets/styles.css
/* makes the hover box go to the bottom right corner */
.hover-content[class^="jsx-"] {
transform: translate(0%,0%) !important;
}
Metadata
Metadata
Assignees
Labels
featuresomething newsomething new
