-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Ordinal scale inversion #598
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
Conversation
Hmm. I'm not sure this is a good idea; the brush makes more sense with quantitative scales. There's an example using a brush with an ordinal scale, but normally I think of toggling individual values rather than selecting a range. |
Hmm, good point. Closing for now, in that case. |
ordinal scale inversion is exactly what I need for mouse interaction with bar charts. I'll definitely add this little patch to the copy of d3 we're using for our project. |
Ordinal scales where this would be really handy: |
I was just making a parallel coordinates chart like this one and to look at correlations between ordinal data sets. Was a little disappointed that this feature didn't move forward as scale inversion would have made this much easier. @mbostock Is there an example for 'toggling distinct values'? I haven't run across this example yet and it would be pretty helpful in this case. [now that I've declared that I haven't seen this example yet, I will almost certainly find it soon and update this thread accordingly] |
What's about this man? |
This issue has been superceded by this other one d3/d3-scale#60 There you can find an active effort towards this by @jheer and @mbostock . It looks like ordinal scale inversion will land in D3 4.0. |
Also here's an example that pretty much does invert an ordinal scale: |
@curran inverting still seems absent, has this been implemented another way? |
What do you mean? What would the semantics look like? What function is expected and what would be the input and output in particular? |
For use with d3.svg.brush e.g. for brushing histograms with ordinal scales. This is a very simple implementation; ideally we want to take into account the current type of range in use.
If I'm headed in the right direction, I'd be happy to improve it and add tests. :)