Skip to main content
100%

Fibonacci Sequence

✓ Published0🌍 Public
NNita
Last edited Sep 17, 2021
Created on Sep 17, 2021
Forked from D3 Starter

This visualization displays the first 29 numbers of the Fibonacci sequence as nested, unfilled squares on an SVG canvas. Each rectangle’s width and height correspond directly to its sequence value, creating a spiral-like layout. The code uses D3 v7’s `select`, `selectAll`, and data joins to bind the array to `rect` elements, with attributes set via callback functions. The SVG is sized 960 by 1000 pixels, and the numbers are hardcoded in the source array.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes