Skip to main content
100%

Chord Diagram

✓ Published0🌍 Public
LLauraCortes
Last edited May 23, 2017
Created on May 21, 2017

A chord diagram visualizes dependencies between classes in a software hierarchy, with arcs representing packages and ribbons showing imports between and within them. The code uses d3.chord to compute the matrix and d3.arc and d3.ribbon for rendering, with color mapping via d3.scaleOrdinal. Data comes from a JSON file listing class names and their imports, rendered as SVG. The diagram reveals circular dependencies, such as between vis.data and vis.events.

AI-generated description

A chord diagram in D3.js, showing dependencies between classes in a software class hierarchy. Dependencies are grouped according to the source and target packages. Although this diagram does not show class-level detail visible with hierarchical edge bundling, it better reveals the total number of imports between and within packages. Note, for example, the circular dependency between vis.data and vis.events. Colors by ColorBrewer.

See also this approach applied to Uber’s San Francisco cab data.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1046712'>Chord Diagram</a>

gpl-3.0 Licensed

Similar vizzes