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

前端 未结 2 1420
甜味超标
甜味超标 2020-12-29 00:12

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 se

2条回答
  •  自闭症患者
    2020-12-29 00:44

    Curious to hear a little more about your experience here. My findings have been that client-server latency is one of the main problem that Crossfilter addresses. Interested to hear if you find that Crossfilter on the server actually buys you anything and if the interactivity is good enough to be useful with a reasonable latency delay. Seems like it might be faster to use a database.

    That said, in answer to your question, in my experience dc.js doesn't require Crossfilter dimensions and groups. It just requires objects that work like Crossfilter dimensions and groups. So if you provide dc.js with objects that have .top() methods but those .top() methods actually hit the server using AJAX and return a data structure that looks like what Crossfilter returns, it should work. I've only done this with very basic charts, so you may have to implement other methods if you are using more advanced features. I believe you will want to be sure to make the method calls block until they return data.

提交回复
热议问题