-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tooltipContent | Text goes out of borders #63
Comments
@enkicoma you can just override the |
|
@enkicoma you can override it in the css of your app. Something along the lines of: .sunburst-tooltip {
white-space: normal !important;
} |
I guess it is |
Describe the bug
A clear and concise description of what the bug is.
Using
tooltipContent
and inserted a long note/text, the text goes out of the box-border.To Reproduce
Steps to reproduce the behavior:
use
.tooltipContent((d, node) =>
Notes: ${node.data.description})(document.getElementById("chart"));
node.data.description
should return a long text.Expected behavior
A clear and concise description of what you expected to happen.
If, I will play and do
<br/>
in the text - I see that the text can fulfil thetooltip
height. This takes ages... I would prefer to have a hard stop on how many words I can use withtooltipContent
or somehow to make the text automatically to take the shape oftooltipContent
.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
I found the css applied to
tooltipContent
, but not sure what do I need to change. Maybe we need to put thetooltipContent
under a flex div?sunburst-chart/src/sunburst.css
Line 40 in 0dc6d37
The text was updated successfully, but these errors were encountered: