Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q2

Public visualization

Viewing a saved revision (read-only)

7294136d11ec49c299f96b6f23d16443

Q2

0 stars0🌍 Public
Ssindhuja27b@gmail.com
Last edited Mar 30, 2024
Created on Mar 30, 2024
Forked from Hello VizHub

A horizontal stacked bar chart displays age-group categories (0–10 through 41–50) in a CSV, with each bar divided into four colored segments representing Category1 through Category4. The chart uses D3 v7’s `scaleBand` for vertical positioning, `scaleLinear` for the value axis, and `stack()` to compute segment offsets, with `axisBottom` and `axisLeft` for axes. SVG rectangles render each segment, and mouseover events show tooltip values via `d3.select`. A legend identifies the four category colors.

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.