Skip to main content
100%

Activity 6 -- Task 2

✓ Published0🌍 Public
Mmayasuedorman@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

A stacked bar chart displays regional sales across appliance, home, clothing, and shoe departments, with each region’s total sales determining the horizontal axis scale. The visualization uses D3 v7’s `d3.stack` to aggregate the CSV data, `d3.scaleBand` for the categorical y-axis, and `d3.scaleOrdinal` to assign colors. SVG rendering places grouped bars and a legend, while axes are formatted with `d3.axisBottom` and `d3.axisLeft`. A custom color palette and bold tick styling from the linked stylesheet enhance readability.

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