Viewing a saved revision (read-only)
339c10dc80434122bf63d3d2887108a7
Stacked Bar Charts_3
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 descriptionThe 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.csvwith your own data - Replace the parsing logic in
index.jswith 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.mdto indicate the original data source