【问题标题】:Google Visualization API - Org Chart LayoutGoogle 可视化 API - 组织结构图布局
【发布时间】:2011-01-06 23:22:40
【问题描述】:

使用 Google Visualization API 中的Org Chart,有没有办法将图表翻转为垂直布局而不是水平布局。

【问题讨论】:

    标签: google-visualization orgchart


    【解决方案1】:

    很遗憾,没有。目前是不可能的。

    此功能已在 Google Visualization API 问题跟踪器的 Issue #47 中提出请求。

    您可能希望为该问题加注星标,让 Google 知道您对此功能感兴趣。

    【讨论】:

      【解决方案2】:

      GetOrgChart jQuery 小部件具有显示垂直组织结构图的方向选项

      GetOrgChart 小部件的方向。

      • getOrgChart.RO_TOP
      • getOrgChart.RO_BOTTOM
      • getOrgChart.RO_RIGHT
      • getOrgChart.RO_LEFT

      默认值:getOrgChart.RO_TOP

      代码示例:

      $("#people").getOrgChart({          
          orientation: getOrgChart.RO_LEFT,
          dataSource: [
              { id: 1, parentId: null, Name: "Amber McKenzie"},
              { id: 2, parentId: 1, Name: "Ava Field"},
              { id: 3, parentId: 1, Name: "Evie Johnson"}]
      });
      

      JSFIDDLE Demo

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-08-21
        • 2011-04-24
        • 2011-01-14
        • 1970-01-01
        • 1970-01-01
        • 2015-08-02
        • 2015-10-30
        相关资源
        最近更新 更多