Skip to main content
Unlisted

Share visualization

Loading preview…

Line Chart of Student Performance

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

Anyone with the link can view this unlisted visualization. Posting it publicly will make the link discoverable.

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Viewing a saved revision (read-only)

ab87257499aa4fa4a3977506319e3192

Line Chart of Student Performance

0 stars0Unlisted
ZZhikai Xue
Last edited Sep 17, 2025
Created on Sep 16, 2025

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