Skip to main content
100%

Untitled

✓ Published0🌍 Public
PPiotr Paszek
Last edited Mar 13, 2021
Created on Mar 13, 2021
Forked from Fork of Labels

A donut chart displays five values as colored arcs with labels positioned outside the chart. Each label is connected to its corresponding arc by a thin pointer line ending in a small circular marker. The visualization uses d3.pie to compute arc angles and d3.arc for the donut shape, while d3.scaleOrdinal with interpolateHslLong assigns colors. Labels and pointer paths are positioned manually using trigonometry, and SVG markers define the pointer endpoints.

AI-generated description

Donut chart labels outside the chart

MIT Licensed

Similar vizzes