【发布时间】:2017-12-04 08:52:55
【问题描述】:
In the pic that all node not in a line.
我希望网络图中的所有节点都排成一行,而不是如图所示倾斜。 zoomcharts 的哪个属性用于禁用倾斜? 感谢您的帮助。
【问题讨论】:
标签: zoomcharts
In the pic that all node not in a line.
我希望网络图中的所有节点都排成一行,而不是如图所示倾斜。 zoomcharts 的哪个属性用于禁用倾斜? 感谢您的帮助。
【问题讨论】:
标签: zoomcharts
我发现使用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 b -> c -> c_child1
【讨论】: