Skip to main content
100%

D3 in Action Chapter 6 - Example 1

✓ Published0🌍 Public
AAlexandru Brebeanu
Last edited May 6, 2021
Created on Apr 27, 2021
Forked from D3 Starter

This example shows an adjacency matrix of character co-appearances in Les Misérables, where each cell is a colored rectangle representing the weight of a connection between two characters. The visualization uses a custom `d3.layout.adjacencyMatrix` layout to compute cell positions and weights, then renders them as SVG rectangles with fill opacity proportional to link weight. Color encodes character group membership via a `d3.scale.category20b()` scale, and axes are generated with `d3.svg.axis` using ordinal scales of character names. The source data is loaded from `miserables.json`.

AI-generated description
MIT Licensed

Similar vizzes