🌍 Public
Viewing a saved revision (read-only)
07a149cd145847bc83c95f5c03591002
Cute Teddy Bear
This example uses D3.js (d3.v6) to render a decorative SVG scene of a teddy bear on a beige background. The bear is composed of basic geometric shapes, including circles for the head, ears, and body, with a curved path for a smile and a blue rectangle and path for a cap. A red balloon, with a line for its string, and a pink flower with a green stem are added to complete the illustration. The code directly appends shapes to an SVG canvas using d3.select and attributes like circles, polygons, paths, and rectangles.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.