Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Tutorial 2

Public visualization

Viewing a saved revision (read-only)

2778576429d045eeb06d1ac5f11f5534

Activity 6_Tutorial 2

0 stars0🌍 Public
Aa9.hemraj@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025

This stacked horizontal bar chart displays the distribution of salaries across five departments, with each bar segmented by salary bracket proportions. Built with D3.js v7 and rendered as SVG, the visualization uses `d3.stack()` to compute cumulative values, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage x-axis. Data from the CSV file is mapped to colored rectangles, with interactive mouseover tooltips revealing exact percentages per bracket.

AI-generated description