DevOps研发效能
媒体矩阵
开源中国APP
授权协议 MIT
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 红薯
适用人群 未知
收录时间 2016-12-30

软件简介

Ggraph 是一个基于 D3 构建的复杂混合图形的库,它扩展了节点和链接的概念。非常适合一组或者多组节点连接的展示。

示例代码:

初始化:

ggraph.init('container');
ggraph.draw(converted);

合并节点到组中:

// Merge selected
ggraph.merge(selection.all());

// Into single group
ggraph.merge(['Maria West', 'Sheldon Roy']);

// Into several groups
ggraph.merge([
  ['A', 'B'],
  ['C', 'D']
]);

切分和删除:

ggraph.split(['Maria West', 'Sheldon Roy']);
ggraph.remove(['Maria West', 'Hazel Santiago']);

在线演示:https://gransk.com/ggraph.html

构建:

git clone https://github.com/pcbje/ggraph && cd ggraph
npm install
node_modules/.bin/karma tests/cover.conf.js
node_modules/.bin/karma tests/watch.conf.js
node_modules/.bin/grunt min
展开阅读全文

代码

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
69 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部