Skip to main content
100%

HW5 Stacked Bar Chart

✓ Published0🌍 Public
RRachel Chen
Last edited Oct 17, 2023
Created on Oct 16, 2023

This stacked bar chart visualizes the Times World University Rankings 2024, breaking down each university’s total score into five components: teaching, research, citations, industry income, and international outlook. Users can sort the 190+ institutions by any score category, in ascending or descending order. Built with D3 v7, the visualization uses `d3.stack()` to generate the layered bars and `d3.scaleBand` for the y-axis, with data loaded from a CSV. Interactive tooltips display individual score components and overall sums on mouseover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes