Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart

Public visualization

Viewing a saved revision (read-only)

207fb1cb27774372bedf6b4432134b18

Barchart

0 stars0🌍 Public
SSrinivasAbburi@my.unt.edu
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from bar

This stacked bar chart displays salary distributions across employment types, using two stacked segments per category to represent a binary breakdown of the data. The visualization loads CSV data from a GitHub gist via `d3.csv`, then applies `d3.stack()` to compute the stacked series, `d3.scaleBand()` for the categorical x-axis, and `d3.scaleLinear()` for the continuous y-axis. Bars are rendered as SVG `rect` elements with colors assigned by `d3.scaleOrdinal`, while axis labels are added through `d3.axisBottom` and `d3.axisLeft`.

AI-generated description