https://github.com/att/xfilter
arbitrary backend <-> crossfilter bridge
https://github.com/att/xfilter
Last synced: 9 months ago
JSON representation
arbitrary backend <-> crossfilter bridge
- Host: GitHub
- URL: https://github.com/att/xfilter
- Owner: att
- License: mit
- Created: 2015-11-03T00:36:31.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2023-04-07T01:33:48.000Z (about 3 years ago)
- Last Synced: 2025-09-28T02:38:12.193Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 606 KB
- Stars: 15
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# arbitrary backend <-> crossfilter bridge
This library implements enough of the crossfilter API and an asynchronous commit hook
so that (in theory) any query engine can be connected to dc.js
Currently the query engine supported is Nanocubes (this library was originally called "nanofilter"):
use `xf.engine(xfilter.nanocube_queries)` to connect with a Nanocubes server
([demo](http://att.github.io/xfilter/chicago-crimes-nanocube.html?server=http://nanocubes.net/nanocube/20)).
Another example engine `xfilter.fgb_queries()` assumes the server takes queries that look like
```js
{
"filter": {
"column": [
"val1",
"val2"
]
},
"groupby": [
"column2"
]
}
```
The intent is that this library can be generalized to support any query engine.