Skip to main content
100%

Activity 7-Q 2

✓ Published0🌍 Public
Ttallapanenisahithi@gmail.com
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Activity 7-Q 1

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes