Skip to main content
100%

bar2

✓ Published3🌍 Public
AArungopal Andalam
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from bar

This example shows the top 10 job titles from a data science salaries dataset, ordered by total salary in descending order, with each bar colored according to its job title. The visualization aggregates salary values using `d3.rollups`, sorts them with `d3.descending`, and renders stacked bars as SVG rectangles with a legend. It uses D3 v7 scales (`scaleBand`, `scaleLinear`, `scaleOrdinal`), axes (`axisBottom`, `axisLeft`), and a categorical color scheme (`schemeCategory10`). Data is loaded asynchronously from a CSV file via `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes