javascript 基于Web的大规模图形绘制库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9490003/
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
Web based large scale graph drawing library
提问by pathikrit
Is there any good javascript libraryfor drawing graphs in a webpage? I want a modern HTML5 library that preferably uses canvas and/or webgl. I havefoundacoupleofgoodweblibrarieswhileresearchingbut they don't scale to the size of graphs I am operating on (upto 2000 vertices+20000 edges) that a desktop software like Gephican easily handle or they are flash/silverlight-based. So, far, my best find is a d3.jsbased implementation. It would be also nice if they had some automatic spring/force-based layouting/clustering algorithmbuilt-in too with Seadragon-stylezooming.
有没有什么好的 javascript 库可以在网页中绘制图形?我想要一个最好使用 canvas 和/或 webgl 的现代 HTML5 库。我已经发现一对夫妇的良好的网络库,同时研究,但他们不扩展到我的(高达2000个顶点+ 20000个边缘),像桌面软件运行图的大小Gephi可以轻松地处理或他们闪光/ silverlight-基于。到目前为止,我最好的发现是基于d3.js的实现。如果他们也内置了一些基于弹簧/力的自动布局/聚类算法,那就太好了海龙式缩放。
采纳答案by pathikrit
I found exactly what I was looking for in Cytoscape
我在Cytoscape 中找到了我正在寻找的东西
回答by Tyler Eich
It appears that D3.js(which you mentioned in you question) is the best JavaScript graphing library in existence. It's very quick, can handle force-based layouts, and allows zooming.
看来D3.js(您在问题中提到的)是现有最好的 JavaScript 图形库。它非常快,可以处理基于力的布局,并允许缩放。
Collapsible force-based layout example
Another answer on Stack Overflowdiscusses D3.js zooming more thoroughly.
Stack Overflow 上的另一个答案更彻底地讨论了 D3.js 缩放。
回答by Diodeus - James MacFarlane
回答by elmuchacho
A few more options
还有几个选项
Or for sure you can thrust Raphael http://raphaeljs.com/but it's svg
或者你可以肯定你可以推拉斐尔http://raphaeljs.com/但它是 svg
Old School http://www.walterzorn.de/en/index.htm
回答by Sergey92zp
SigmaJS is good for graphs in web page via JS.
SigmaJS 非常适合通过 JS 在网页中绘制图形。