Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

question 2

Public visualization

Viewing a saved revision (read-only)

e225779bf53649ae9fd7d309a9662f95

question 2

0 stars2🌍 Public
Jjaideeptripurani12@gmail.com
Last edited Apr 29, 2024
Created on Apr 27, 2024

This example shows a chart that uses an area path to compare average math scores between male and female students, with the D3 area generator mapping gender categories along the x-axis and score values along the y-axis. The visualization loads student performance data from a hosted CSV file, aggregates the math scores by gender using `d3.rollup`, and renders the result as an SVG area chart with labeled axes. The code applies D3 v7 scales, axes, and generators like `d3.area`, `scaleBand`, and `scaleLinear` to construct the figure.

AI-generated description

A demonstration of reusable scatter plot.