D3: d3 tree

d3.layout.tree API

d3.layout.tree – position a tree of nodes tidil 定位节点树
tree – alias for tree.nodes tree.nodes 的别号
tree.nodes – compute the tree layout and return the array of nodes 盘算树规划并返回节点数组
tree.links – compute the parent-child links between tree nodes 盘算树节点之间的父子关系
tree.children -get or set the children accessor function 猎取或设置子节点接见函数
tree.sort – control the order in which sibling nodes are traversed 对同级节点举行排序
tree.separation – get or set the spacing function between neighboring nodes 猎取或设置相邻节点之间的间距的函数
tree.size – specify the layout size in x and y 指定在x和y的规划尺寸
tree.nodeSize – specify a fixed size for each node 指定每一个节点的牢固大小

d3.svg.diagonal API

d3.svg.diagonal – create a new diagonal generator 建立一个新的对角发生器
diagonal.projection – get or set an optional point transform 猎取或设置一个恣意变换点

d3 tree 实例

d3 tree – d3 tree – A simple Tree Diagram

d3 tree – Styling nodes in a tree diagram

d3 tree – Making a vertical tree diagram

d3 tree – Generating a tree diagram from ‘flat’ data

d3 tree – An interactive tree diagram

d3 tree – An interactive tree diagram with arrow marker

    原文作者:小渝人儿
    原文地址: https://segmentfault.com/a/1190000000422344
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞