Scatterplot Matrix with D3
✓ Published1🌍 Public
A scatterplot matrix displays pairwise relationships among four numeric measurements of iris flowers, with points colored by variety using a categorical color scale. Built with D3 v7 and SVG, the visualization renders a grid of small multiples, each pairing two variables on linear scales. The code constructs scales and axes from column metadata, uses `d3.cross` to generate cell positions, and applies `d3.InternSet` to filter data by variety. Labels appear along the diagonal, and the d3-legend library is linked but legend rendering is not implemented in the visible script.
AI-generated descriptionAssignment 5 part A
Scatterplot Matrix with D3
inspired by:
- https://observablehq.com/@d3/splom
- https://observablehq.com/@observablehq/d3-scatterplot
- https://d3-legend.susielu.com/#color
and by documentation
MIT Licensed