-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Legend is squished together #1005
Comments
Yeah happens also for my charts on random. |
The problem is caused by a function that creates a temporary SVG element to hold legend text so that the dimensions of this text can be determined. The height of this SVG element was set to zero in commit d35f0f8 to prevent the temporary SVG element from flickering the scrollbar (issue #942). This however had the side effect of setting the heights of all legend text boxes to zero. Perhaps the solution to both problems is to take the temporary SVG element out of the flow so it doesn't trigger the scrollbar: svg = body.append("svg").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0) Maybe you can get away without setting the top-left zero positions: svg = body.append("svg").style('visibility', 'hidden').style('position', 'absolute') |
@mrj Oh well, thank you! :) |
Thanks for looking into this. I fixed to use |
|
I was setting this up today and found the legend is too close together yet my code is I believe is pretty basic. Please Note that the /head body tags was missing. When I added it, it made no difference.
Any ideas how to fix it?
The text was updated successfully, but these errors were encountered: