Skip to main content
100%

Fork of Labels

✓ Published0🌍 Public
PPiotr Paszek
Last edited Jul 23, 2021
Created on Jul 23, 2021
Forked from Labels

A donut chart with three slices displays hardcoded apple counts, with each slice filled by a distinct image pattern loaded from external URLs via SVG `<pattern>` elements. Labels showing the numeric values are positioned outside the pie's outer radius, and thin black pointer lines with circular markers connect each label to its corresponding slice. The visualization is built with D3 v6, using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with an interpolated color ramp, while the pointer paths are drawn by manually computing angular positions and SVG path commands.

AI-generated description

Donut chart labels outside the chart

MIT Licensed

Similar vizzes