Direction
下一篇
📈 图表分类
Loading...
通过设置语法糖 direction
为 vertical
radial
分别让子节点垂直、径向分布。若不设置 direction
,则默认 horizontal
水平分布。
注意,节点标签也会自动根据 direction
排布,当设置 node.style.labelPlacement
时会以后者为准。
Use the syntax sugar direction
to set the arrangement of child nodes as vertical
or radial
. If direction
is not set, the default is horizontal
.
Note that the label placement will adjust based on the direction
, but if node.style.labelPlacement
is set, it takes precedence.