0

在图片中,所有节点都不在一条线上。

我希望网络图中的所有节点都排成一行,而不是如图所示倾斜。zoomcharts 的哪个属性用于禁用倾斜?感谢帮助。

4

1 回答 1

0

使所有节点排成一行

我发现使用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

于 2017-12-04T09:40:08.373 回答