Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3.stratify(处理行列式层次型数据) #97

Open
ckinmind opened this issue Feb 15, 2019 · 0 comments
Open

d3.stratify(处理行列式层次型数据) #97

ckinmind opened this issue Feb 15, 2019 · 0 comments

Comments

@ckinmind
Copy link
Owner

ckinmind commented Feb 15, 2019

demo地址

这个方法是v4版本新增的,用于处理行列式层次型数据(以前只支持JSON),现在可以支持csv格式的,用于解析这样的数据: 数据是打平的,但是每组数据都有id和parentId,这个方法就能帮你把这样的数据结构处理成嵌套的结构,父子包含结构

d3.stratify - 创建一个层操作符。
stratify - 从表格式的数据构造一个根节点。
stratify.id - 设置节点ID访问器。
stratify.parentId - 设置父节点ID访问器
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant