Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
Jjerry70938@gmail.com
Last edited Oct 10, 2024
Created on Oct 10, 2024

This interactive stacked bar chart visualizes university ranking data from the Times Higher Education World University Rankings, displaying weighted scores across five categories: Teaching, Research, Citations, Industry Income, and International Outlook. The D3.js v6 code uses `d3.stack()` to compute stacked series and `d3.scaleBand()` for the x-axis, with `d3.axisLeft()` and `d3.axisBottom()` for axes. Hovering over legend circles highlights the corresponding segment by adjusting rectangle opacity via `svg.selectAll()`, while a user interface allows re-sorting bars by different metrics and ascending or descending order.

AI-generated description
MIT Licensed

Similar vizzes