Skip to main content
100%

Arc Padding II

✓ Published0🌍 Public
SSmith5mr
Last edited Feb 4, 2016
Created on Feb 4, 2016

This example displays a pie chart formed from seven nested arcs, each representing a value from the Fibonacci sequence [1, 1, 2, 3, 5, 8, 13]. The chart demonstrates the `padAngle` method from the d3-shape module, which inserts a small gap between each arc segment. Rendered on a Canvas, the visualization uses the `d3.arc` and `d3.pie` APIs to calculate the arc geometries, which are then drawn with semi-transparent fills and a stroke outline using the native Canvas context.

AI-generated description

A demonstration of arc.padAngle.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/f37b07b92633781a46f7'>Arc Padding II</a>

forked from <a href='http://bl.ocks.org/Smith5mr/'>Smith5mr</a>'s block: <a href='http://bl.ocks.org/Smith5mr/9b16c3815f461d8c0817'>Arc Padding II</a>

Similar vizzes