Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Task2_Question 2-3

Public visualization

Fork of Activity6_Task2_Question 2-3

0 stars0🌍 Public
Kkondaveeti.bhargavi7780@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity6_Task2

This visualization uses a stacked bar chart to show the distribution of jobs across five locations—New York, Texas, New Jersey, San Jose, and others—for four job categories. Each bar segment represents a percentage, with colors mapping to locations via d3.scaleOrdinal. The chart uses d3.stack to compute stacked series, d3.scaleBand and d3.scaleLinear for axes, and d3.axisBottom with tick marks. Interactive tooltips appear on mouseover, revealing the exact percentage value using d3.format. Data is loaded from a local CSV file, and the SVG is rendered with D3 v7.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed