2014-10-08 73 views

回答

3

创建另一个维度,然后在其上调用dimension.top(Infinity)

https://github.com/square/crossfilter/wiki/API-Reference#dimension_top

您将需要额外的维度,因为尺寸不遵守自己的过滤器,只在其他尺寸的过滤器。

然后,您可以使用例如d3.csv.format以产生文本,如果你需要的话。

https://github.com/mbostock/d3/wiki/CSV#format

+0

呀事情是crossfilter – 2014-10-08 21:27:20

+0

这里有包括下载按钮[完整的示例](http://dc-js.github.io/dc.js/examples/download-table.html)。在[这个答案]中解释(http://stackoverflow.com/a/37573744/676195)。 – Gordon 2016-06-01 16:08:41