【问题标题】:Graphvis - Horizontal instead of Vertical Hierarchy?Graphviz - 水平而不是垂直层次结构?
【发布时间】:2021-11-27 16:51:15
【问题描述】:

我是 Graphvis 的新手,但我喜欢它。我正在映射我的 JavaScript 代码,到目前为止我有:

digraph G {
  graph [fontsize=24]
  edge [fontsize=24]
  node [fontsize=24]
  ranksep = 1.5
  nodesep = .25
  edge [style="setlinewidth(3)"]
  a[label="$scope.$on(\"playing\")"]
  b[label="$scope.app.adjust"]
  c[label="$scope.app.beforeProceeding"]
  b->c
  a -> playingOrStopped
  HowToShowOp -> image_btn_array
  playingOrStopped -> image_btn_array
}

这给了我一个很好的图表http://magjac.com/graphviz-visual-editor/ 但是该图是从上到下流动的。有谁知道如何让它从左向右流动?

【问题讨论】:

    标签: javascript python graph-visualization


    【解决方案1】:

    我在这里找到了解决方案:https://graphviz.org/doc/info/shapes.html rankdir=LR

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多