Unlisted
Viewing a saved revision (read-only)
bdcc1e232c8f49f4b232823a79bcb52f
This line chart shows how student performance in math, measured by final grade (G3), varies with age, with separate lines for each school. The visualization aggregates the underlying CSV data by computing the average grade for each age group per school, then renders these averages as a multi-line chart. Built with React and D3 v7, the code uses `d3.line`, `d3.scaleLinear`, and `d3.axisBottom` to construct the plot, while `d3.scaleOrdinal` and `d3.schemeCategory10` assign distinct colors to each school's line.
AI-generated description