Skip to main content
100%

D3 - Chord Diagram

✓ Published1🌍 Public
SSubhendu Karmakar
Last edited Jan 2, 2024
Created on Jan 2, 2024

This chord diagram uses d3.chord and d3.ribbon to visualize a 3x3 matrix of numeric relationships as interconnected arcs. The chord generator sorts subgroups in ascending order and applies a 0.04 radian pad angle, while the ribbon generator sets a fixed radius of 200. Data is embedded directly in the JavaScript as a three-row array. The resulting SVG paths are rendered with d3.select and the join operation, which binds the chord data to path elements and assigns the ribbon path data. The styling in styles.css fills the paths with a light gray and adds a subtle stroke and opacity, creating a clean, static representation of the matrix.

AI-generated description
MIT Licensed

Similar vizzes