Skip to main content
100%

Vis Playground

✓ Published1🌍 Public
PPaulDFPV
Last edited Dec 4, 2021
Created on Dec 2, 2021
Forked from Hello VizHub

This example shows a simple cartoon face rendered as an SVG using React components and D3 shape primitives. The face consists of a yellow background circle, two black eyes positioned symmetrically, and a red mouth drawn with the d3.arc path generator. The React components—BackgroundCircle, Eyes, Mouth, and FaceContainer—compose the SVG hierarchy, with FaceContainer applying a translate transform to center the drawing. ReactDOM renders the App component into the DOM, while D3’s arc API generates the mouth’s path data, demonstrating a hybrid React-D3 workflow.

AI-generated description
MIT Licensed

Similar vizzes