🌍 Public
Viewing a saved revision (read-only)
2e4a2164069f4f3faebdf1dfcfab1251
Rotate svg
This example demonstrates a basic D3.js starter template, where a single SVG path element, the propeller, is animated to rotate 720 degrees over seven seconds. The rotation is achieved using D3's transition and `attrTween` API, which interpolates the SVG transform attribute. The code specifically uses `d3.select` to target the SVG element and `d3.interpolate` to create the tween function, showcasing a minimal yet effective use of D3's animation capabilities.
AI-generated descriptionA demonstration of how to start using D3 version 6.