Skip to main content
100%

Sine function-a little animation

✓ Published2🌍 Public
NNita
Last edited Apr 10, 2021
Created on Apr 9, 2021
Forked from D3 Starter

This visualization displays the sine function as a series of animated circles, each positioned vertically according to its sine value and horizontally by index. The circles transition their vertical positions over three seconds, creating a wave-like motion. The code uses d3.select, d3.range, and d3’s transition API to animate SVG circle elements, with random values for radius, color, and final placement. The data is generated directly from the sine of each index, and the rendering is SVG-based within a full-window canvas.

AI-generated description
MIT Licensed

Similar vizzes