使用dc.js在客户方与crossfilter在服务器上 [英] Using dc.js on the clientside with crossfilter on the server

查看:167
本文介绍了使用dc.js在客户方与crossfilter在服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作创造了大型数据集的交互式可视化。数据集可以不在浏览器中加载由于它们的大小。我们使用节点服务器上crossfilter加载和过滤数据服务器端。我在想,如果我能以某种方式夫妇与dc.js图表​​服务器端crossfilter过滤器。

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.

我使用的d3.js现在创建图表,但要使用不同的图表,已经存在于dc.js.我们基本上过滤在服务器端的数据,然后听图表的变化上的客户方与服务器上执行适当的滤波和通过AJAX连通

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.

如果有人能提出一个办法做到纳入dc.js客户端和crossfilter服务器之间的类似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.

推荐答案

dc.js和crossfilter之间的连接不是很紧张,这应该是可能的。

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

最近有一个关于换出crossfilter,这几乎是同样的问题,在邮件列表中dc.js对话:

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/论坛/#!话题/ DC-JS-用户组/ fkRoFHuqg4k

这是你需要马歇尔的主要功能是 group.all dimension.filter 。对不起,我不知道有任何人crossfilter远程访问,但我知道足够多的人做的几乎的这一点,我毫不怀疑它可以工作。

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.

下面是一个相关的问题: https://github.com/dc- JS / dc.js /问题/ 602

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

这篇关于使用dc.js在客户方与crossfilter在服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆