-
Notifications
You must be signed in to change notification settings - Fork 42
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
group.post.cap(length).() always does natural ordering #47
Comments
Sorry, I was just not familiar enough with this part of the API. I would prefer if it respected group ordering, but the way it works right now is that you need to use the sortBy option of the post processing capability like so:
I'll answer on StackOverflow as well. Longer-term, I'd prefer that the post-processing respected group order by default, so I will consider making that change for a 1.0 release and therefore leave this issue open. Thanks, |
You'll need to create a fake group. There is an example in the dc.js FAQ: https://github.com/dc-js/dc.js/wiki/FAQ#fake-groups Note that you could also use dc.js's ordering and capping capabilities rather than Reductio's. Up to you! |
Cheers Ethan. I got it working. That's why I removed the comment here and added the comment on SO. I would be nice the have the feature as well because most of the time I'm guessing people would want to use it in charts. I don't know where it fits between dc.js and reductio but I think this might be pretty useful. Thanks again! |
So, is it possible to add a fake group on a reductio-ned group? Probably the solution is already given, but to me it is not clear. Assume
then just doing the following looks like a lost of functionality. Am I wrong?
|
Please don't ask new questions on old issues being used to track features. Open a question on Stackoverflow or a new issue here with a running example of your issue/question. Thanks! |
crossfilter top
orders correctly.reductio post().cap(length)()
doesn't.The text was updated successfully, but these errors were encountered: