activity 7.1 question 2
✓ Published0🌍 Public
This example shows an area chart of average clothing weight by size. The visualization loads CSV data from a GitHub gist, groups the records by clothing size, and computes the mean weight for each category before drawing the chart using D3 v7. The SVG rendering uses `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the y-axis, and a `d3.area` generator to create the filled path. Axes are added with `d3.axisBottom` and `d3.axisLeft`, and the chart is styled with steelblue fill.
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