javascript 使用 D3js 创建数据库 ER 图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21183093/
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-27 20:18:10  来源:igfitidea点击:

Create database E-R diagram with D3js

javascriptd3.js

提问by ajay

I need to create an E-R diagram for a database schema using D3js. Any examples, suggestions?
Thanks in advance.

我需要使用 D3js 为数据库模式创建 ER 图。任何例子,建议?
提前致谢。

[EDIT] In case there is a library / utility (open source) that is more suitable for this, please so suggest.

[编辑] 如果有更适合于此的库/实用程序(开源),请提出建议。

回答by jason zhang

checkout jointjs http://jointjs.com/demos/erd. I made a ER diagram with it.

结帐jointjs http://jointjs.com/demos/erd。我用它做了一个ER图。

Also checkout https://github.com/cpettitt/dagre. You can draw directed or undirected graph using it.

还可以查看https://github.com/cpettitt/dagre。您可以使用它绘制有向图或无向图。