Arc Corners
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Dec 29, 2015
This example visualizes the Fibonacci sequence [1, 1, 2, 3, 5, 8, 13] as a pie chart with rounded corners. Slices appear semi-transparent with distinct colors, separated by white strokes, and the outer edge of each slice has small circle outlines marking the corner positions. The visualization uses d3.arc with a cornerRadius setting to draw the rounded slice shapes, while d3.pie computes the angles. Rendering occurs on a Canvas element, with context settings like globalAlpha and stroke properties controlling appearance. The corner circles are drawn using a second d3.arc instance.
AI-generated descriptionA demonstration of arc.cornerRadius.
gpl-3.0 Licensed