Read in JSON department files
✓ Published2🌍 Public
This example presents a zoomable sunburst visualization of Teesside University’s academic structure, showing departments, their courses, and course modules as nested arcs. It loads three JSON files—department names, pathways to departments, and course modules—and merges them into a hierarchical tree. Using d3.partition and d3.arc, the sunburst lays out nodes by angle and radius, while d3.hierarchy computes the layout from the aggregated data. Clicking arcs triggers a zoom transition via transition.attrTween, re-scaling the visualization around the selected node. The view applies a rainbow color scale to top-level departments and renders labels with conditional visibility.
AI-generated descriptionMIT Licensed