Fork of CAT D3.js11
This example shows two identical SVG cat faces drawn side by side, each built from basic geometric shapes using D3.js v7. It demonstrates fundamental DOM manipulation by programmatically appending circles, paths, and polygons to create the head, ears, eyes, nose, mouth, and whiskers. The code uses D3’s selection and append methods to construct each cat, with no external data—the shapes are hardcoded via attribute values. A flexbox container in the HTML positions the two SVGs, while a separate CSS file centers the entire layout on the page. The cats do not animate or respond to interaction; they purely illustrate static SVG construction with D3.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.