🌍 Public
Viewing a saved revision (read-only)
51ab77e6b0da4fbbbfb92947246f4521
Task 9&10 Q 1.2
This example shows monthly revenue as a filled area chart, with the area rendered in steelblue and axes labeled “Month” and “Revenue ($)”. It uses D3 v7 with an SVG output, loading data from a CSV file via `d3.csv`, mapping months to the x-axis with `d3.scaleBand` and revenue to a linear y-axis, then drawing the area with `d3.area` and a `path` element. Axes are added using `d3.axisBottom` and `d3.axisLeft` for reference.
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.