🌍 Public
Viewing a saved revision (read-only)
1964e6c2774a43308504bd001376ed6e
Activity 6 Question 3
This scatter plot visualizes the relationship between Physics and History scores for individual students, with each circle's color encoding the student's sex (steelblue for male, deeppink for female). The data is loaded from a remote CSV file using the D3.js v7 library and rendered as SVG elements. The code uses `d3.csv` to fetch and parse the data, `d3.scaleLinear` for both axes, and `d3.scaleOrdinal` for the categorical color mapping, with axes generated via `d3.axisBottom` and `d3.axisLeft`.
AI-generated description