Skip to main content
100%

jack_jill_nested_calls

✓ Published0🌍 Public
Aadiamaan92
Last edited Jan 27, 2019
Created on Jan 27, 2019

This example visualizes a nested sequence of function calls as a branching tree layout, where each call—such as `went_up`, `fetch`, and `tumble_after`—appears as a node with its arguments as child branches. It shows the hierarchical flow of a story’s actions, with the root call `tumble_after` at the top and leaf nodes like `jack_jill` and `"hill"` at the bottom. The code uses `d3.forceSimulation` to position nodes and `d3.linkHorizontal` for curved edges, while the data is a hardcoded JavaScript object representing the call tree. Rendering is done with SVG paths and circles, styled via `d3.select` and `attr`.

AI-generated description

Similar vizzes