简体   繁体   English

如何使用d3制作简单的有向图

[英]how to make simple directed graph using d3

I am trying to create a simple force layout directed-edge graph base on this D3.js example " http://bl.ocks.org/1153292 ". 我试图基于这个D3.js示例“ http://bl.ocks.org/1153292 ”创建一个简单的力布局有向边图。

There is line where it says .data(["suit", "licensing", "resolved"]) but I have no clue what that means. 有一行说它.data(["suit", "licensing", "resolved"])但我不知道这意味着什么。 I have to admit I don't fully understand the details of it. 我不得不承认我并不完全了解它的细节。

I have looked at a few so questions but none was helpful. 我看了几个问题,但没有一个是有帮助的。

I would really appreciate it if 如果,我真的很感激

  1. sb can tell what ".data(["suit", "licensing", "resolved"])" means. 某人可以说出“.data”([“诉讼”,“许可”,“解决”])“的意思。

  2. How are arrows added to the end of the edges. 如何将箭头添加到边缘的末尾。

  1. The join is creating markers for those three types, to customize how CSS will style the display of each edge. 连接为这三种类型创建标记,以自定义CSS如何设置每条边的显示样式。
  2. In link , source and target have special meanings. link ,源和目标具有特殊含义。 Each target is drawn with an arrowhead during path assignment. path分配期间,每个目标都用箭头绘制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM