【问题标题】:How to make all nodes in a line when using netchart of zoomcharts使用zoomcharts的netchart时如何使所有节点排成一行
【发布时间】:2017-12-04 08:52:55
【问题描述】:

In the pic that all node not in a line.

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

【问题讨论】:

    标签: zoomcharts


    【解决方案1】:

    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 b -> c -> c_child1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-24
      相关资源
      最近更新 更多