Data Visualization Homework 5: Stacked Bar
Chart
This stacked bar chart visualizes the 2024 Times World University Rankings, showing the weighted contributions of teaching, research, citations, industry income, and international outlook for 28 universities per page. Users can sort universities by any indicator in ascending or descending order via dropdown menus, and navigate between pages using previous and next buttons. The visualization uses D3 v5’s `scaleBand`, `scaleLinear`, `scaleOrdinal`, `d3.stack()`, and `axisBottom`/`axisLeft` to render the SVG bars, with hover tooltips displaying raw scores. Data comes from a CSV file, and color encoding is explained by a legend.