Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-9 Q2

Public visualization

Task-9 Q2

0 stars0🌍 Public
Mmoulidomar@hotmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This visualization shows the yearly percentage of U.S. government education expenditure over time, using a single filled area to represent the trend. The area chart is rendered as an SVG with D3.js v7, loading CSV data from a GitHub gist. The code uses `d3.csv` to fetch data, `d3.scaleLinear` for both axes, and `d3.area` to generate the chart’s path. Axes are added via `d3.axisBottom` and `d3.axisLeft`, with labels for "Year" and "Gov Education Expenditure (%)". The chart is styled with a steelblue fill and includes margins for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed