Skip to main content
100%

EP02 | 學會 D3.js 製作圖表 - 製作笑臉

✓ Published0🌍 Public
CCeleste6666
Last edited Nov 5, 2021
Created on Nov 5, 2021

This example draws a smiling face as an SVG graphic using D3.js version 7. The yellow circle face, two eyes, arc path mouth, and rectangular eyebrows are all constructed with D3 shape and selection APIs, including `d3.arc` for the mouth’s curved path. A `transition` animates the eyebrows upward and back downward over two seconds each, demonstrating chained transitions on a transformed group element.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes