Activity-7.1 Q2
✓ Published0🌍 Public
This example shows an area chart of monthly day counts for the first half of the year, using a sample dataset with month names and number of days. The D3.js v7 code creates an SVG visualization with a steelblue filled area, scales using `d3.scaleBand` and `d3.scaleLinear`, and generates the path with the `d3.area` generator. Axes are added via `d3.axisBottom` and `d3.axisLeft`, with labels for both dimensions. The chart is built entirely with SVG elements appended to a container div.
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