Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using dc.js on the clientside with crossfilter on the server

I am working on creating interactive visualizations for large datasets. The datasets cannot be loaded in the browser due to their size. We're using crossfilter on a node server to load and filter the data serverside. I was wondering if I could somehow couple the server side crossfilter filters with dc.js charts.

I am using d3.js right now to create charts but want to use the various charts that are already there in dc.js. We are basically filtering the data on the serverside and then listening to changes on the chart on the clientside and performing appropriate filtering on the server and communicating via AJAX.

If someone could suggest a way to do incorporate a similar AJAX communication mechanism between the dc.js client and crossfilter server, it would be very helpful.

like image 968
Ganesh Iyer Avatar asked Jun 12 '14 12:06

Ganesh Iyer


1 Answers

The coupling between dc.js and crossfilter is not very tight, and this should be possible.

There was a recent conversation about swapping out crossfilter, which is almost the same problem, on the dc.js mailing list:

https://groups.google.com/forum/#!topic/dc-js-user-group/fkRoFHuqg4k

The main functions that you'll need to marshall are group.all and dimension.filter. Sorry, I don't know of anyone accessing crossfilter remotely, but I know enough people doing almost this, that I have no doubt it can work.

Here is a related issue: https://github.com/dc-js/dc.js/issues/602

like image 168
Gordon Avatar answered Sep 20 '22 09:09

Gordon