🌍 Public
Viewing a saved revision (read-only)
0d535791049b4ca59220661819ac808b
Act 9 Q2 Area chart
This example shows an area chart of age against weight, filled with steelblue, using a dataset fetched from a GitHub gist. It sorts the parsed CSV data by age before rendering. The chart is built with D3.js v7, using `d3.area`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft` to generate the SVG path and axes. The visualization includes labeled axes for Age and Weight (kg) and a title, with margins applied to the SVG container.
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.