A parent-child relationship is a directed association in which one hierarchical item is the parent of another item.
A parent-child relationship connects hierarchical items from a parent to its direct child. In tabular data, Child and Parent columns encode these links; the root item has no parent. section 11.1.1
Build a hierarchy from flat CSV data:
Represent each item in a row with its child identifier and parent identifier. section 11.1.1
How D3.js in Action, Third Edition covers it
How deep it goes
Explains column encoding and implements conversion with D3 stratify, then exposes roots, descendants, and leaves.
Examples
Uses Languages, language families, branches, and individual languages in a CSV table.
What it assumes
Starts with spreadsheet-style rows and introduces the required D3 hierarchy transformation.
What you can do after
Build it from scratch by encoding CSV relationships and converting them into a D3 hierarchy.
join data typeused by · The join data type is an Elasticsearch field type that represents parent-child relationships between documents in the same index.
lifecycle dependencyuses · A lifecycle dependency is a dependency in which the existence or removal of one object governs the existence or removal of another object.
referencekind of · A reference is an indirect value or relationship that identifies or provides access to another value, object, resource, or source.
one-to-many relationshipcontrasts with · A one-to-many relationship associates one instance of an entity with multiple instances of another entity, each of which is associated with at most one instance of the first.
This explainer was generated by Manning's knowledge graph from the text of D3.js in Action, Third Edition. The section links point to the parts of the book it draws on.