Activity 6 Question 3
✓ Published0🌍 Public
This scatter plot visualizes the relationship between Math and English scores for individual students, with points colored by gender (steelblue for males, deeppink for females). It uses the D3.js library (v7) to load a CSV dataset from GitHub, apply linear scales to both axes, and render the chart as SVG. The visualization includes labeled axes, a purple title, and a legend, all positioned using calculated margins. The code leverages `d3.scaleLinear`, `d3.extent`, `d3.scaleOrdinal`, and `d3.axisBottom`/`d3.axisLeft` to construct the plot, with circles appended via `g.selectAll('circle').data(data).join('circle')`.
AI-generated descriptionMIT Licensed