Chord Diagram Observable Port
This chord diagram visualizes directed relationships among four hair-color groups using a matrix of interaction values. Built with D3 v7, it renders arcs for each group and ribbons showing bidirectional flows, with hover highlighting related chords and click-to-select filtering. The visualization uses `d3.chord`, `d3.arc`, and `d3.ribbon` generators, includes tick marks with formatted value labels, and displays tooltips on both arcs and ribbons. Data originates from a static 4x4 matrix with named groups and custom colors, ported from an Observable notebook to vanilla JavaScript.
AI-generated descriptionThis example was ported from the original Observable: Chord Diagram II to Vanilla JavaScript using AI (Claude 4 Sonnet in VizHub AI).
An interactive chord diagram implementation using D3.js showing directed relationships among groups. This visualization is adapted from the Observable notebook and follows a unidirectional data flow pattern.
Features
- Interactive group selection by clicking on arcs
- Hover effects on both groups and chords
- Responsive design that adapts to container size
- Tooltips showing values and relationships
- Tick marks and labels for value reference
Data Structure
The visualization uses a matrix format where each cell represents the relationship strength between groups: