Skip to main content
100%

Fork of Fork of Donut Chart

✓ Published0🌍 Public
DDavid Allyn
Last edited Dec 3, 2022
Created on Dec 3, 2022

This donut chart visualizes the hierarchical structure of the flare dataset, with each ring segment representing a category and its subcategories. The visualization uses a sunburst layout where the inner circle shows the root, and each subsequent ring displays deeper levels of the hierarchy. The code employs D3 v5's `d3.hierarchy`, `d3.partition`, and `d3.arc` functions to compute and render the radial layout, with colors assigned via `d3.scaleOrdinal` and `d3.interpolateRainbow`. Interactive tooltips appear on hover, displaying the full path and value of each segment. The visualization is rendered as SVG with a fixed 932x932 viewBox, and labels rotate to remain readable around the circle.

AI-generated description

Un exemple pour le TP.

MIT Licensed

Similar vizzes