Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 3

Public visualization

Viewing a saved revision (read-only)

0acb989925f14338aadc093936e4d4b3

Question 3

0 stars0🌍 Public
GGangumalla Ruchitha Reddy
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This stacked bar chart shows the sales performance of six products—Laptop, Smartphone, Tablet, Headphones, Smartwatch, and Camera—across five regions (North, South, East, West, Central). The x-axis represents dollar amounts as a percentage, and the y-axis lists product categories. Built with D3 v7, it uses `d3.stack()` to generate stacked series, `d3.scaleBand` for the y-axis, and `d3.axisBottom` for the x-axis. Mouseover interactions display tooltips showing each region’s percentage contribution. Data comes from an inline CSV file loaded via `d3.csv`.

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.