🌍 Public
Viewing a saved revision (read-only)
32c9cf9e93c7432aabc854eb10b1c8b7
Assignment2 question 2
This example shows a monthly sales trend as a filled area chart, with twelve data points from January through December. The visualization uses D3 v7 to render the chart as SVG, employing `d3.scaleBand` for the month axis, `d3.scaleLinear` for the sales axis, and `d3.area` to generate the semi-transparent steel-blue area path. The chart includes labeled axes for both months and sales values. The sample dataset is hardcoded in the script, and the rendering is handled entirely through D3’s SVG manipulation.
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.