pivot-crossfilter:交叉过滤器的简单枢轴功能

时间:2021-05-13 20:05:03
【文件属性】:
文件名称:pivot-crossfilter:交叉过滤器的简单枢轴功能
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-13 20:05:03
JavaScript 交叉过滤器的枢轴 这是用于交叉过滤器的简单枢轴函数,编写为ES6模块。 lib文件夹包含Babel为UMD模块系统生成的ES5代码。 该函数返回给定行和列的计数; 以及行/列的乘积 data = [{ product: "A", store: "B"}, {product: "B", store: "A"}, {product: "C", store: "B"}] fact = crossfilter(data); pivot( facts, "product", "store")` 此代码将产生结果: { "product": { "A": 1, "B": 1, "C": 1 }, "store": { "A": 1, "B": 2 }, "product|store": { "A|B": 1, "B|A": 1
【文件预览】:
pivot-crossfilter-master
----package.json(646B)
----src()
--------pivot.js(917B)
----LICENSE.md(11KB)
----lib()
--------pivot.js(2KB)
----Makefile(129B)
----README.md(648B)

网友评论