Skip to content
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

Labels hidden or overlapping on big datasets #17

Closed
yianni-ververis opened this issue Sep 26, 2017 · 3 comments
Closed

Labels hidden or overlapping on big datasets #17

yianni-ververis opened this issue Sep 26, 2017 · 3 comments

Comments

@yianni-ververis
Copy link

yianni-ververis commented Sep 26, 2017

Hello,

It seems that if there are a lot of labels, they do overlap. I tried to play with svg height and height() but the results are either hidden or overlapping.

2017-09-26 10_24_38

@NPashaP
Copy link
Owner

NPashaP commented Sep 26, 2017

If there is not enough total height then the labels will end up overlapping. You can increase the height of the viz (see http://bl.ocks.org/NPashaP/aeef4383faf3a5885d95799e4cfdd220) to have enough room. You could also hide labels which have a value less than a threshold.

@yianni-ververis
Copy link
Author

I gave it
svg.attr("height", vars.canvasHeight);
var g = svg.append("g").attr("transform", "translate(150,30)");
.height(vars.canvasHeight-30)

where canvasHeight is even 4000 with the same results

@NPashaP
Copy link
Owner

NPashaP commented Sep 28, 2017

viz.bP() has its own height function.

@NPashaP NPashaP closed this as completed Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants