D3 in Action Chapter 6 - Example 1
✓ Published0🌍 Public
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 descriptionMIT Licensed