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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 06:50:44  来源:igfitidea点击:

Web based large scale graph drawing library

javascriptcanvascluster-analysiswebglgraph-visualization

提问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

Take a look at EXT.js, It can render to canvas, svg and mobile with the same code base. There's a lot more to the product than the visualization engine. It's a complete client-side framework. Well worth looking at.

看看EXT.js,它可以使用相同的代码库渲染到画布、svg 和移动设备。除了可视化引擎之外,该产品还有更多功能。它是一个完整的客户端框架。很值得一看。

回答by Sergey92zp

SigmaJS is good for graphs in web page via JS.

SigmaJS 非常适合通过 JS 在网页中绘制图形。

http://sigmajs.org/

http://sigmajs.org/