Skip to main content
100%

A5 Scatterplot Matrix D3

✓ Published1🌍 Public
EEric Yao
Last edited Feb 27, 2024
Created on Feb 27, 2024
Forked from A5 Bubblechart D3

This interactive D3.js scatterplot matrix visualizes relationships among three SAT score variables—TotalMath, TotalVerbal, and MathematicsAverageGPA—using U.S. state-level data from satscores.csv. Each cell shows a paired comparison of two variables, with points representing individual states. A hover effect changes point color to orange for enhanced readability. Built with d3.v7, the example uses d3.csv for data loading, d3.scaleLinear for axes, d3.cross to generate the grid of cell pairs, and d3.axisBottom/axisLeft with tick lines to render gridlines. The SVG rendering employs a coordinated [i,j] indexing system for placing points as circles.

AI-generated description

Took inspiration from my old scatterplot from A4.

Adapted a lot of code from here: https://observablehq.com/@d3/brushable-scatterplot-matrix Specifically used the coordinate system with [i,j] to plot the points and create the cells since I did not know how to do it with just the column's data.

MIT Licensed

Similar vizzes