Read in JSON department files
✓ Published1🌍 Public
This example shows a zoomable sunburst chart of student enrollment data by department, course, and module, with a breakdown of male and female students. A radio button selection allows users to choose a department for focus. The data is loaded from three JSON files using `Promise.all` with `d3.json`. The visualization uses D3 v5’s `d3.partition`, `d3.hierarchy`, and `d3.arc` to render the SVG-based radial layout, with click interactions to zoom and animate through the hierarchy. Colors are assigned via `d3.scaleOrdinal` with a rainbow interpolator.
AI-generated descriptionMIT Licensed