Skip to main content
100%

Learn to draw smile with d3

✓ Published2🌍 Public
VVincent Ko
Last edited Feb 16, 2019
Created on Feb 15, 2019

This example demonstrates basic SVG shape drawing with D3, showing circles, rectangles, lines, and paths arranged to form a playful smiley composition. The code uses plain D3 selections to append SVG elements inside a `<g>` container with a scale transform, while CSS classes like `.lines` style the stroke properties. A video tutorial link accompanies the code, which uses D3 v3 to manipulate SVG attributes directly without data binding or advanced visualization techniques.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes