Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked Bar Charts_3

Public visualization

Viewing a saved revision (read-only)

ace6a25a0f6c49bb96aa0ad2a1164db2

Stacked Bar Charts_3

0 stars1🌍 Public
Wweird_danger
Last edited Oct 9, 2024
Created on Oct 8, 2024

This example visualizes the Times World University Rankings 2024 as a set of stacked horizontal bar charts, with each bar representing a university and its segments showing scores for teaching, research, citations, industry income, and international outlook. Users can sort the universities by any of these criteria in ascending or descending order via dropdown menus. Built with D3.js, the visualization uses `scaleLinear`, `scaleBand`, `scaleOrdinal`, and the `stack` API to generate the SVG chart, while a custom tooltip displays exact segment values on hover. The data comes from a CSV file.

AI-generated description

The Penguins Dataset, loaded and parsed as CSV.

Fork and modify this template to import your data to VizHub and export it for use in other vizzes! To do that:

  • Fork this viz
  • Clear out the README
  • Update the README with details about your dataset (including original source)
  • Replace data.csv with your own data
  • Replace the parsing logic in index.js with your own
  • Set the custom URL so you can import from it easily

Challenge

  • Find 3 datasets on a topic you are interested in
  • For each of those, fork this viz and replace the data
  • Parse the quantitative attributes into numbers
  • Update README.md to indicate the original data source