Skip to main content
100%

Shapes: Pie Example

✓ Published0🌍 Public
DDanielAguirre
Last edited Oct 7, 2017
Created on Oct 7, 2017

This pie chart example visualizes a sequence of eight numbers—1, 1, 2, 3, 5, 8, 13, 21—as proportional wedges. Using D3 v4, it renders the chart with the `d3.pie` layout function and `d3.arc` to draw each arc with fixed inner and outer radii. The SVG paths are filled using a categorical color scheme (`d3.schemeCategory20c`) via `d3.scaleOrdinal`. The graphic is centered inside a full-screen SVG, and the code demonstrates a basic, static pie chart built from a simple array.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes