Skip to main content
100%

Fork of Donut Chart

✓ Published2🌍 Public
MMaeva B
Last edited Sep 28, 2022
Created on Sep 28, 2022
Forked from Hello VizHub

This visualization uses an arc diagram to display the hierarchical composition of the Observable Flare dataset as a donut chart. Each ring segment represents a node, colored by its top-level category, with labels for smaller divisions. The chart is built with D3 v5’s `d3.partition` layout and `d3.arc` generator, rendering SVG paths and text elements. It loads data from the `@observablehq/flare` module and uses `d3.scaleOrdinal` with an interpolated rainbow palette for coloring.

AI-generated description

Un exemple pour le TP.

MIT Licensed

Similar vizzes