🌍 Public
D3 Shapes - Pi Charts
This example shows how to create a simple donut chart using D3’s arc generator. Five arc segments with varying start and end angles are rendered as SVG paths inside a single group, all filled with solid orange. The code configures the arcs with inner and outer radii, padding, and rounded corners via `d3.arc()`, then binds the data array to path elements using `.join()`. The visualization relies on D3 v7 and static SVG output, with no interaction or animation.
AI-generated descriptionD3 Scales - scaleTime()
MIT Licensed
Comments
Sign in to join the discussion.