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

Need help in ordinal scale. The given code does not work if changed the values #49

Open
vishalbedre opened this issue Apr 10, 2017 · 1 comment

Comments

@vishalbedre
Copy link

Hi,

I used following code in my project for slider.

essai = d3.slider().scale(d3.scale.ordinal().domain(["2001", "2002", "Winter-2003", "2004-2005"]).rangePoints([0, 1], 0.5)).axis(d3.svg.axis()).snap(true).value("2001"); d3.select('#slider12').call(essai); It is not working and not able to get any values on events.

Please suggest

@rioj7
Copy link

rioj7 commented Nov 12, 2018

change line 281 to

if (toType(value) == "array" && value.length == 2 && value[ 0 ] >= value[ 1 ] ) return;

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