Skip to main content
100%

Fork of Stacked Bar Chart

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Stacked Bar Chart

This stacked bar chart compares clothing brands across three categories—Formal, Casual, and Shoes—using d3.scaleBand for the x-axis and d3.scaleLinear for the y-axis. The SVG rendering displays colored bars and a legend, with data from a hardcoded dataset of four brands. The code uses D3 v7, loaded via UNPKG, and demonstrates axis generation with d3.axisBottom and d3.axisLeft, plus a custom legend built from appended rectangles and text.

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