Activity 7-Q 2
✓ Published0🌍 Public
This stacked area chart visualizes monthly sales volumes across eight chocolate types—including Dark, Milk, White, Ruby, Vegan, Caramel, Hazelnut, and Almond—using a color-coded legend. The visualization loads CSV data from a GitHub repository via `d3.csv`, then applies `d3.stack` with `.keys` and `d3.area` to generate layered SVG paths. It scales the x-axis with `d3.scaleBand` for months and the y-axis with `d3.scaleLinear` for total counts, while `d3.axisBottom` and `d3.axisLeft` render the labeled axes.
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