2014-10-08 76 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