7

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

4

2 回答 2

7

很不幸的是,不行。目前是不可能的。

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

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

于 2010-01-19T19:37:20.127 回答
1

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 演示

于 2014-03-19T19:37:48.320 回答