Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 3

Public visualization

Activity 6 Question 3

0 stars0🌍 Public
Ssagipavan2385@gmail.com
Last edited Apr 6, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

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 description

Comments

Sign in to join the discussion.

MIT Licensed