Pie chart with labels
✓ Published0🌍 Public
DDDDDDanica
Last edited Apr 5, 2017
Created on Apr 4, 2017
This pie chart displays three categories (A, B, C) as a donut, with each slice labeled by its numeric value and connected to the slice via a thin pointer line. Built with D3 v3, it uses `d3.layout.pie` to compute angles, `d3.svg.arc` with an inner radius for the donut shape, and `d3.scale.category20` for slice colors. Labels are positioned outside the chart using trigonometry on start and end angles, with anchors adjusted based on text bounding boxes. The data is hardcoded in the script.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed