如何创建多重链接&用javascript做有向图?
这是我的问题:对于一个学校项目,我们正在尝试创建一个有向图并使其适合典型的 html 网站。我们发现它必须用 JavaScript 编写,因为 Java 小程序不是一个选项。所以它应该是这样的: 图像。
图中可视化的数据将从一些 xml 文件中收集。 我们查看了flare和其他一些包,但实际情况是在我们的图中的节点之间建立双向链接(其中箭头的粗细代表重要性)。还需要使整个东西可移动。 有什么想法吗?谢谢。
This is my problem: For a school project we are trying to create a directed graph and make it fit in a typical html website. We figured out it had to be written in javascript, because a java applet isn´t an option. So this is how it should look like: image.
The data visualised in the graph will be gathered from some xml files.
We took a look at flare and some other packages, but real thing is making a two-way link between the nodes (where the thickness of the arrow represents importance) in our graph. Making the whole thing moveable is also required.
Any ideas? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 jsPlumb - 一个功能不丰富但易于定制的有向图 jQuery 插件
http:// morrisonpitt.com/jsPlumb/html/jquery/demo.html
Have a look at jsPlumb - a not featurerich but easy customizable jQuery Plugin for directed graphs
http://morrisonpitt.com/jsPlumb/html/jquery/demo.html