Skip to main content
100%

Untitled

✓ Published1🌍 Public
Vvivianaaai@qq.com
Last edited Nov 7, 2023
Created on Nov 7, 2023
Forked from Line

This example animates the morphing of one SVG path into another using D3’s `transition.attrTween` and a custom path interpolation function. The path alternates between two cubic Bézier shapes in an infinite loop, with each transition lasting two seconds and using uniform distance sampling for smooth point-by-point interpolation. The code references `d3.select`, `d3.active`, and `getTotalLength`, while importing D3 v6 from a CDN. The included `province.csv` file contains COVID-19 statistics for Chinese provinces, though it is not loaded or visualized in the rendered output.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes