Skip to main content
100%

A6 Scatterplot D3

✓ Published0🌍 Public
EEric Yao
Last edited Mar 20, 2024
Created on Mar 4, 2024
Forked from A5 Bubblechart D3

This scatterplot visualizes the relationship between average math and verbal SAT scores across US states in 2015, with each state represented as a circle. The color of each point encodes the state’s average math GPA using a d3.scaleThreshold with discrete color ranges, and a d3.legendColor legend clarifies the mapping. The chart is built with D3 v7, rendering SVG elements with d3.axisBottom and d3.axisLeft for the axes. Hovering reveals a tooltip with state details, while the data comes from the satscores.csv file.

AI-generated description

Took inspiration from my old scatterplot from A4.

Had Chatgpt help with the colorScale function and general attributes.

MIT Licensed

Similar vizzes