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

Axis invisible with margin 0 #5

Open
SinBirb opened this issue Dec 6, 2013 · 0 comments
Open

Axis invisible with margin 0 #5

SinBirb opened this issue Dec 6, 2013 · 0 comments

Comments

@SinBirb
Copy link

SinBirb commented Dec 6, 2013

In horizontal orientation, when specifying margin(0), the axis is not visible.

Workaround is to remove the height assignment in line 104 (https://github.com/turban/d3.slider/blob/master/d3.slider.js#L104):

svg.attr({
    width: sliderLength + margin * 2
    //height: margin
});
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

1 participant