Skip to main content
Public

Share visualization

Loading preview…

2-19-2022 rework

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

2-19-2022 rework

0
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

Comments

Sign in to join the discussion.

MIT Licensed