Fork of D3 Starter
This example shows a simple, smiling face constructed from SVG shapes, rendered inside a React component. The face consists of a blue circle for the head, two smaller circles for eyes, and a mouth drawn using an arc path generated by D3's `d3.arc()` helper. The code uses React for component composition and state management, while D3 v7 provides the arc geometry. All shapes are positioned within a single SVG element centered via a group transform, with D3 loaded from an external script tag.