Skip to main content
100%

D3JS Starter

✓ Published0🌍 Public
ZZackaz
Last edited Dec 16, 2020
Created on Dec 15, 2020
Forked from HTML Starter

This example shows a simple animated smiley face rendered in SVG, with eyebrows that repeatedly raise and lower. The face is centered using a translated `<g>` element, and its features are built from basic shapes: circles for the eyes, rectangles for the eyebrows, and a path generated with the `d3.arc` function for the mouth. The animation is driven by chained `transition().duration(2000)` calls that modify the eyebrow group’s transform. The code imports `select` and `arc` from D3 v5 and uses D3’s `transition` for the motion.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes