Skip to main content
100%

Read in JSON department files

✓ Published1🌍 Public
NNourAldinAlmubarak
Last edited Apr 23, 2020
Created on Apr 23, 2020

This example shows the gender distribution of students across university departments, courses, and modules using an interactive partition layout (sunburst) visualization. The circle chart displays hierarchical data from three JSON files—department names, pathways to departments, and course module counts, colored by department. The visualization uses d3.partition, d3.hierarchy, and d3.arc to compute the sunburst’s geometry and SVG rendering with animation on click. A central circle allows zooming back to the root level, while tooltips display course names and student counts. The code uses d3.scaleOrdinal with d3.quantize and d3.interpolateRainbow for colors.

AI-generated description
MIT Licensed

Similar vizzes