fresh block
✓ Published0🌍 Public
KKacieW
Last edited Jun 12, 2018
Created on Jun 12, 2018
A donut chart displays the value and percentage for eight iPad models, with each wedge colored by a categorical scale and connected to a labeled callout line. The visualization uses D3 v3’s `d3.layout.pie` and `d3.svg.arc` to generate the arcs, while a custom `relax` function iteratively adjusts overlapping text labels, shifting their `y` positions and updating the corresponding line endpoints to reduce clutter. The code mixes D3 v3 and v4 scripts, rendering to SVG.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed