-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Reimagining crossfilter and dc.js interactions #1506
Comments
Hi @kum-deepak! I am generally supportive but I think I'd need to see more specifics to really understand what you're talking about. Maybe you could write something up that we can iterate on? It could be a wiki or a gist or something. I think part of what you're talking about are in the filter classes. You are right that currently the specification of filters is a bit messy, but maybe adding a categorical filter class could help, so that there are no special cases in baseMixin. Or maybe not. There is also the fact that we currently bypass those filter classes in order to use more optimized crossfilter methods, here: Lines 77 to 100 in f819d3f
Conceivably the filter objects could "apply themselves" in order to get rid of that bypass. But I'm not sure that helps in your goal. Also I think others have found that the most efficient queries/filters to supply to other backends were not classified the same way. This is not a major issue, but it's worth keeping in mind that the crossfilter methods are exactly what was most efficient for that very unique data structure. Eventually I plan to transfer xfilter to the crossfilter or dc-js organization, and maybe give it a more descriptive name (that name comes from "you can turn X into crossfilter" but I don't think that comes across). I'm also open to pulling it apart if it's not the right abstraction. Sorry if this is a bit rambly, I haven't really thought it out, just offering some pointers here. |
(A related effort: we have talked about splitting off the chart registry #988. That's a complementary effort, and crossfilter is only implicit there. Same level of abstraction though.) |
Thanks for your detailed note. I will get some code going, that will give me ideas as well 😄 |
I have done a basic wrapper, please see pull request #1510 |
@gordonwoodhull many thanks for your continuous work on making dc.js available to the humanity. 👍
I had a look at https://github.com/att/xfilter. It pretty much achieves what I needed.
I have few ideas to make it ready for the prime time:
dc
does not need much, which you have already almost separated in xfilter. I think to make xfilter (or anything else) need to be brought to same playing field as crossfilter.xfilter
(and others) will be able to target the same specs.I addition there can be some minor improvements which I can describe as we move along. At this stage wanted to check your views.
The text was updated successfully, but these errors were encountered: