具有多个父级的 Javascript/PHP 家谱生成器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5639142/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 18:11:57  来源:igfitidea点击:

Javascript/PHP Family Tree Builder with Multiple Parents

phpjavascriptjqueryapifamily-tree

提问by Explosion Pills

Is there an existing PHP, Javascript, or even command line tool that can build a family tree in HTML (preferably) or at the very least create an image for it? Multiple parents are a requirement. I have been googling this for hours, but to no avail.

是否有现有的 PHP、Javascript 甚至命令行工具可以在 HTML 中构建家谱(最好)或者至少为它创建一个图像?多个父母是必需的。我已经在谷歌上搜索了几个小时,但无济于事。

For instance, the Google Organizational Chartwould be ideal, but it only allows each node to have at most one parent. I need two parents to be possible.

例如,Google Organizational Chart是理想的,但它只允许每个节点最多有一个父节点。我需要两个父母才有可能。

Whatever this website does would also be perfect: http://www.familyecho.com/, but it seems to not be done with javascript and they don't publish the code that actually creates the visualization.

无论这个网站做什么也是完美的:http://www.familyecho.com/,但它似乎不是用 javascript 完成的,他们也没有发布实际创建可视化的代码。

Even connecting to an external website to use their API to generate a visualization would be perfect.

即使连接到外部网站以使用他们的 API 来生成可视化效果也是完美的。

采纳答案by Dan Blows

As it's just the JavaScript you're after (I assume, since you're designing your own schema...) the InfoVis framework provides all sorts of complicated relationships - http://thejit.org/static/v20/Jit/Examples/ForceDirected/example1.html.

因为它只是您所追求的 JavaScript(我假设,因为您正在设计自己的架构......)InfoVis 框架提供了各种复杂的关系 - http://thejit.org/static/v20/Jit/Examples /ForceDirected/example1.html

回答by Matt Ball

You might be interested in Rapha?l, especially this demo.

您可能对Rapha?l感兴趣,尤其是这个演示



Edit:I just came across a couple other promising-looking options from this question.

编辑:我刚刚从这个问题中发现了其他几个看起来很有前景的选项。

  • Protovis- I knew about this one when I first answered, but didn't think of it at the time. It's reallyflexible. Check out the examples.
  • Dracula Graph- haven't tried it. It might be too simple for your uses.
  • Protovis- 我第一次回答时就知道这个,但当时没有想到。它真的很灵活。查看示例
  • 德古拉图- 没试过。对于您的用途来说,它可能太简单了。

回答by Symen Timmermans

This is possible with Graphviz. It's an (easy to learn) language, and a command-line executable (for Linux, Solaris, Windows and Mac) which can export at least to PNG and SVG. It is extremely flexible and can do family trees. I suppose multiple parents is not a problem at all. Check http://www.graphviz.org/content/kennedyancfor an example. See all the other examples at: http://www.graphviz.org/Gallery.php

这可以通过Graphviz 实现。它是一种(易于学习)语言和命令行可执行文件(适用于 Linux、Solaris、Windows 和 Mac),至少可以导出为 PNG 和 SVG。它非常灵活,可以做家谱。我想多个父母根本不是问题。查看http://www.graphviz.org/content/kennedyanc以获取示例。查看所有其他示例:http: //www.graphviz.org/Gallery.php

You will probably discover several other uses for Graphviz yourself.

您可能会自己发现 Graphviz 的其他几种用途。

回答by Gideon Greenspan

Family Echo now has an API, allowing you to submit a family tree in GEDCOM or FamilyScript format, and view in online via the Family Echo site.

Family Echo 现在有一个API,允许您以 GEDCOM 或 FamilyScript 格式提交家谱,并通过 Family Echo 站点在线查看。

回答by Dark Light

回答by irfanmcsd

At last if found very useful script for making professional family tree diagram in php. It helped me alot. Just want to share with others, may be helpful to others.

最后如果找到了非常有用的脚本,可以在 php 中制作专业的家谱图。这对我帮助很大。只是想分享给别人,可能对别人有帮助。

jTree Family Tree Maker Script

jTree 家谱制作脚本