Assignment 2 Question 2
✓ Published0🌍 Public
This example shows a smooth area chart of expenditure versus age, drawn as an SVG in D3 v7. It loads a CSV dataset from a GitHub repository and renders it with a linear x-scale and y-scale. The code uses `d3.area()`, `d3.curveMonotoneX`, `d3.axisLeft`, and `d3.axisBottom` to generate the path and axes, with custom axis labels and a chart title.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed