Skip to main content
100%

2-19-2022 rework

✓ Published0🌍 Public
CConnor Trump
Last edited Mar 27, 2022
Created on Feb 19, 2022

This visualization reworks semantic JSON knowledge structures into an interactive graph of nodes, links, and groups. It displays the logical relationships within sentences, such as "the shark bit the surfer savagely," by parsing hierarchical data from files like `example.json` and `happycat.json`. The code uses D3 v4’s `d3.json` to load data, creates nodes with varying widths based on text measurement via Canvas `measureText`, and employs WebCola for force-directed layout. SVG and Canvas contexts render the graph, with node types distinguishing referents, predicates, and groupings.

AI-generated description
MIT Licensed

Similar vizzes