Google 可视化 API - 组织结构图布局

发布于 2024-08-18 14:11:48 字数 191 浏览 5 评论 0原文

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

Using the Org Chart in the Google Visualization API, is there a way to flip the chart to a vertical layout instead of horizontal.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷夜 2024-08-25 14:11:48

不幸的是没有。目前还不可能。

问题 #47 在 Google Visualization API 问题跟踪器上。

您可能需要给该问题加注星标,让 Google 了解您对此功能的兴趣。

Unfortunately no. It is not possible at the moment.

This feature has been requested in Issue #47 on the Google Visualization API issue tracker.

You may want to star the issue to let Google know about your interest in this feature.

旧故 2024-08-25 14:11:48

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

GetOrgChart jQuery widget has oeriantation option to show vertical org chart

Orientation of the GetOrgChart widget.

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

Default value: getOrgChart.RO_TOP

Code examples:

$("#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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文