Skip to main content
100%

Experiment2

✓ Published0🌍 Public
RRobinL
Last edited Jun 5, 2016
Created on Jun 5, 2016

Sixteen rectangles render as a sine wave, their heights fixed and their vertical positions offset by the sine of each index divided by three. The visualization demonstrates a basic data mapping from an array generated with `d3.range` and transformed via `Array.map`. Each rectangle is appended to an SVG using D3’s `selectAll`, `data`, and `enter` pattern, with position and color set through the `attr` method. The result shows a smooth sinusoidal pattern across the SVG canvas.

AI-generated description

Similar vizzes