什么是最快的纯 Javascript 图形可视化工具包?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5695918/
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
What's the fastest, pure Javascript, Graph visualization toolkit?
提问by fccoelho
This question is about toolkits which draw graphs (those things composed of vertices and edges), not generic plots.
这个问题是关于绘制图形的工具包(那些由顶点和边组成的东西),而不是通用图。
The tool must be able to get a set of vertices and edges, calculate their layout, and display them either using the canvas tag, or SVG, that is be compatible with HTML5.
该工具必须能够获取一组顶点和边,计算它们的布局,并使用与 HTML5 兼容的画布标签或 SVG 显示它们。
Flash-based tools and java applets are out.
基于 Flash 的工具和 Java 小程序已经过时。
to serve as unified benchmark, please measure and report how long it takes for the toolkit to layout and draw a Barabasi-Albert graph with 100 vertices and 5 edges per node.
作为统一基准,请测量并报告该工具包布局和绘制每个节点具有 100 个顶点和 5 个边的 Barabasi-Albert 图所需的时间。
This python lybrary shows how to generate it and exports it to many formats:
这个 python 库展示了如何生成它并将其导出为多种格式:
http://networkx.lanl.gov/tutorial/tutorial.html#graph-generators-and-graph-operations
http://networkx.lanl.gov/tutorial/tutorial.html#graph-generators-and-graph-operations
Please indicate browser and CPU.
请注明浏览器和CPU。
采纳答案by suhair
JavaScript InfoVis Toolkitis awesome and i have not seen a competitor to it.
JavaScript InfoVis Toolkit很棒,我还没有看到它的竞争对手。
回答by anastluc
Data Driven Documents (d3.js) http://mbostock.github.com/d3/is quite good in my experience as it scales up quite good; can easily handle 100 nodes (or more?) without any stall
数据驱动文档 (d3.js) http://mbostock.github.com/d3/在我的经验中非常好,因为它可以很好地扩展;可以轻松处理 100 个节点(或更多?)
回答by David
We produce mxGraph, it is a entirely client-side graph visualization library. We optimise precisely for this one domain, not just general drawing, so we've quite a speed advantages that part-time projects in this field won't be able to implement.
我们生产mxGraph,它是一个完全客户端图形可视化库。我们针对这一领域进行了精确优化,而不仅仅是一般绘图,因此我们具有该领域兼职项目无法实现的速度优势。