8000 Ordinal scale does not support invert · Issue #1440 · d3/d3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ordinal scale does not support invert #1440

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

Closed
alexspeller opened this issue Aug 6, 2013 · 2 comments
Closed

Ordinal scale does not support invert #1440

alexspeller opened this issue Aug 6, 2013 · 2 comments

Comments

@alexspeller
Copy link

Would be useful (specifically for brushes) if it did, e.g:

var barScale = d3.scale.ordinal()
      .domain(d3.range(10))
      .rangeBands([5, 1024], .08);

barScale(5) // 518.5436507936507
barScale.invert(518.5436507936507) // would be good to be able to get 5 back out of the scale
@jasondavies
Copy link
Contributor

Duplicate of #598.

@alexspeller
Copy link
Author

Closing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
0