简体   繁体   English

Google组织结构图缺少链接

[英]Google org chart missing links

This jsfiddle contains a google org chart that represents a family tree for Mike, whose parents Jim & Alice are also brother and sister. 该jsfiddle包含一个Google组织结构图,该结构图表示Mike的家谱,其父母Jim&Alice也是兄弟姐妹。 [this is a simplification of a real world problem]. [这是对现实世界问题的简化]。

The org chart is not displaying the parents of Alice. 组织结构图未显示爱丽丝的父母。 How can I force the full tree to be represented? 我怎样才能迫使整个树代表?

        data.addRows([
      ['Mike', ''],
      ['Jim', 'Mike'],
      ['Alice', 'Mike'],

      ['Bob', 'Alice'],
      ['Carol', 'Alice'],

      ['Bob', 'Jim'],
      ['Carol', 'Jim']

    ]);



http://jsfiddle.net/simon831/36gg3ro1/55/

Your column names need to be unique. 您的列名称必须唯一。 I updated your fiddle: 我更新了您的小提琴:

['Mike', ''],
['Jim', 'Mike'],
['Alice', 'Mike'],

['Bob', 'Jim'],
['Carol', 'Jim'],

['Bob2', 'Alice'],
['Carol2', 'Alice']

From the data property description of google org charts: 从Google组织结构图的数据属性描述中:

Column 0 - The node ID. 列0-节点ID。 It should be unique among all nodes 它在所有节点之间应该是唯一的

googlechart api documentation googlechart api文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM