🌍 Public
Viewing a saved revision (read-only)
b9a94339bec24f6ca11eb464d8c690db
Scatter Plot Ice 7
This example demonstrates a reusable scatter plot visualizing the relationship between study hours and exam scores. The chart displays 15 data points as circles, with study hours on the x-axis and exam scores on the y-axis, using D3’s linear scales and axis functions. The `scatterPlot.js` module defines a configurable chart with settable width, height, margin, and radius parameters, loaded via `d3.csv` from a GitHub-hosted dataset. The implementation uses D3 v7’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs, with a `join` operation to create the circles.
AI-generated description