如何在使用缩放图的网络图时使所有节点成为一条线

时间:2017-12-04 08:52:55

标签: zoomcharts

In the pic that all node not in a line.

我希望网络图中一行中的所有节点,而不是像图中所示的那样倾斜。 zoomcharts的哪个属性用于禁用倾斜? 谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

Make all nodes in a line

我发现使用direction制作一行中的所有节点。只需使方向符合from ... to...

"links":[
            {"from":"a", "to":"b","style":{"toDecoration":"arrow","direction":"R"}},
            {"from":"b", "to":"c", "style":{"toDecoration":"arrow", "direction":"R"}},
            {"from":"a", "to":"a_child1","style":{"toDecoration":"arrow","direction":"L"}},
            {"from":"c", "to":"c_child1","style":{"toDecoration":"arrow","direction":"R"}}
        ]

a_child1< - a - > b - > c - > c_child1