Skip to main content
100%

Task-9 Q2

✓ Published0🌍 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
MIT Licensed

Similar vizzes