May 2019
Beginner to intermediate
650 pages
14h 50m
English
Nodes can be connected using lines created with an SVG <path> (instead of <line>) element, which allows much more flexibility and can be used to render curves. The d3-shape module contains three generator functions that create text contents for the <path> element's d attribute. A link generator function receives a standard link object, with two properties: source and target, each containing nodes with coordinates that are used to generate the path.
Configuration methods can be used in case the data needs to be transformed before use or if the coordinates are stored in different keys:
|
Function |
Configuration methods |
Description |
|
d3.linkHorizontal() |
.x(function) and .y(function) |
Creates a function to generate horizontal ... |
Read now
Unlock full access